Why i am getting this error? where exactly i am doing mistake?
Failed to run custom action 'action_weatherapi'. Couldn't connect to the server at 'http://rasa-server:5055/webhook'. Is the server running? Error: Cannot connect to host rasa-server:5055 ssl:default [Temporary failure in name resolution]
2021-09-06 19:51:26 ERROR rasa.core.processor - Encountered an exception while running action 'action_weatherapi'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
why i am getting this exception? how to execute custom action in docker-compose
RasaException: Failed to execute custom action
Traceback (most recent call last):
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/connector.py", line 999, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/connector.py", line 865, in _resolve_host
addrs = await self._resolver.resolve(host, port, family=self._family)
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/resolver.py", line 31, in resolve
infos = await self._loop.getaddrinfo(
File "uvloop/loop.pyx", line 1469, in getaddrinfo
socket.gaierror: [Errno -3] Temporary failure in name resolution
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sagar/.local/lib/python3.8/site-packages/rasa/core/actions/action.py", line 685, in run
response = await self.action_endpoint.request(
File "/home/sagar/.local/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 163, in request
async with session.request(
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in __aenter__
self._resp = await self._coro
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/sagar/.local/lib/python3.8/site-packages/aiohttp/connector.py", line 1011, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host rasa-server:5055 ssl:default [Temporary failure in name resolution]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sagar/.local/lib/python3.8/site-packages/rasa/core/processor.py", line 772, in _run_action
events = await action.run(
File "/home/sagar/.local/lib/python3.8/site-packages/rasa/core/actions/action.py", line 717, in run
raise RasaException("Failed to execute custom action.")
rasa.shared.exceptions.RasaException: Failed to execute custom action.