Localhost error

cannot connect to specific port number. I want to use port number 5058, but when i use url: “http://localhost:5058/webhook” rasa keeps saying 2023-07-18 15:34:04 ERROR rasa.core.actions.action - Failed to run custom action ‘validate_drawing_form’. Couldn’t connect to the server at ‘http://localhost:5058/webhook’. Is the server running? Error: Cannot connect to host localhost:5058 ssl:default [원격 컴퓨터가 네트워크 연결을 거부했습니다] 2023-07-18 15:34:04 ERROR rasa.core.processor - Encountered an exception while running action ‘drawing_form’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 980, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 1025, in create_connection raise exceptions[0] File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 1010, in create_connection sock = await self._connect_sock( File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 924, in _connect_sock await self.sock_connect(sock, address) File “C:\Users\User\anaconda3\lib\asyncio\proactor_events.py”, line 702, in sock_connect return await self._proactor.connect(sock, address) File “C:\Users\User\anaconda3\lib\asyncio\windows_events.py”, line 808, in _poll value = callback(transferred, key, ov) File “C:\Users\User\anaconda3\lib\asyncio\windows_events.py”, line 595, in finish_connect ov.getresult() ConnectionRefusedError: [WinError 1225] 원격 컴퓨터가 네트워크 연결을 거부했습니다

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\action.py”, line 788, in run response: Any = await self.action_endpoint.request( File “C:\Users\User\anaconda3\lib\site-packages\rasa\utils\endpoints.py”, line 165, in request async with session.request( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py”, line 1141, in aenter self._resp = await self._coro File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py”, line 536, in _request conn = await self._connector.connect( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 540, in connect proto = await self._create_connection(req, traces, timeout) File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 901, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 1206, in _create_direct_connection raise last_exc File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 1175, in _create_direct_connection transp, proto = await self._wrap_create_connection( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 988, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:5058 ssl:default [원격 컴퓨터가 네트워 크 연결을 거부했습니다]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\processor.py”, line 960, in _run_action events = await action.run( File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\loops.py”, line 25, in run events += await self._activate_loop( File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\forms.py”, line 734, in _activate_loop events += await self.activate(output_channel, nlg, temp_tracker, domain) File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\forms.py”, line 634, in activate validated_events = await self.validate_slots( File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\forms.py”, line 277, in validate_slots validate_events = await _action.run(output_channel, nlg, _tracker, domain) File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\action.py”, line 829, in run raise RasaException( rasa.shared.exceptions.RasaException: Failed to execute custom action ‘validate_drawing_form’. Couldn’t connect to the server at 'http://localhost:5058/webhook. 2023-07-18 15:34:08 ERROR rasa.core.actions.action - Failed to run custom action ‘submit_drawing_form’. Couldn’t connect to the server at ‘http://localhost:5058/webhook’. Is the server running? Error: Cannot connect to host localhost:5058 ssl:default [원격 컴퓨터가 네트워크 연결을 거부했습니다] 2023-07-18 15:34:08 ERROR rasa.core.processor - Encountered an exception while running action ‘submit_drawing_form’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 980, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 1025, in create_connection raise exceptions[0] File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 1010, in create_connection sock = await self._connect_sock( File “C:\Users\User\anaconda3\lib\asyncio\base_events.py”, line 924, in _connect_sock await self.sock_connect(sock, address) File “C:\Users\User\anaconda3\lib\asyncio\proactor_events.py”, line 702, in sock_connect return await self._proactor.connect(sock, address) File “C:\Users\User\anaconda3\lib\asyncio\windows_events.py”, line 808, in _poll value = callback(transferred, key, ov) File “C:\Users\User\anaconda3\lib\asyncio\windows_events.py”, line 595, in finish_connect ov.getresult() ConnectionRefusedError: [WinError 1225] 원격 컴퓨터가 네트워크 연결을 거부했습니다

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\action.py”, line 788, in run response: Any = await self.action_endpoint.request( File “C:\Users\User\anaconda3\lib\site-packages\rasa\utils\endpoints.py”, line 165, in request async with session.request( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py”, line 1141, in aenter self._resp = await self._coro File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\client.py”, line 536, in _request conn = await self._connector.connect( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 540, in connect proto = await self._create_connection(req, traces, timeout) File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 901, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 1206, in _create_direct_connection raise last_exc File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 1175, in _create_direct_connection transp, proto = await self._wrap_create_connection( File “C:\Users\User\anaconda3\lib\site-packages\aiohttp\connector.py”, line 988, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:5058 ssl:default [원격 컴퓨터가 네트워 크 연결을 거부했습니다]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\processor.py”, line 960, in _run_action events = await action.run( File “C:\Users\User\anaconda3\lib\site-packages\rasa\core\actions\action.py”, line 829, in run raise RasaException( rasa.shared.exceptions.RasaException: Failed to execute custom action ‘submit_drawing_form’. Couldn’t connect to the server at 'http://localhost:5058/webhook. 그리신 None 그림에 말씀해주신 특징 None을 넣어 완성해볼게요. 잠시만 기다려주세요~ Your input →

this error. I create new connection in setting for connecting to 5058, but this error keep going. How can I solve the problem?

Hi @youngchae64 I have two questions:

  • Are you providing the port value to action server when starting it?
  • In your endpoints.yml, Are you uncommenting this line and updating the new port value?
#action_endpoint:
#  url: "http://localhost:5055/webhook"