got concurrent.futures._base.CancelledError
See original GitHub issueRasa version: 1.1.6-full (docker image)
Rasa X version (if used & relevant):
Python version:
Operating system (windows, osx, …): docker
Issue: seems to timeout between rasa and action server. My action takes around 10sec. I don’t know why it’s timeout, because DEFAULT_REQUEST_TIMEOUT
is around 5 minutes.
My action is well executed from the actions server.
Error (including full traceback):
Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/rasa-1.1.6-py3.6.egg/rasa/core/processor.py”, line 439, in _run_action events = await action.run(output_channel, nlg, tracker, self.domain) File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/rasa-1.1.6-py3.6.egg/rasa/core/actions/action.py”, line 399, in run json=json_body, method=“post”, timeout=DEFAULT_REQUEST_TIMEOUT File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/rasa-1.1.6-py3.6.egg/rasa/utils/endpoints.py”, line 144, in request **kwargs File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/aiohttp/client.py”, line 1005, in aenter self._resp = await self._coro File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/aiohttp/client.py”, line 497, in _request await resp.start(conn) File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py”, line 844, in start message, payload = await self._protocol.read() # type: ignore # noqa File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 129, in throw return self.gen.throw(type, value, traceback) File “/usr/local/lib/python3.6/site-packages/aiohttp/streams.py”, line 588, in read await self._waiter concurrent.futures._base.CancelledError
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
Issue Analytics
- State:
- Created 4 years ago
- Comments:48 (29 by maintainers)
Top GitHub Comments
We’ve just replaced the lock implementation with a new solution from @ricwo in https://github.com/RasaHQ/rasa/pull/3933 . I am not sure if this issue is fixed by this (not released yet, only on master) but the error message should at least be different.
@erohmensing, I’ve tried with
RestInput
connector and it works like a charm. No errors and expected behavior.Well, I suppose I’m going to ask to people to send a POST request to the action server when they want to perform this custom action. Great UX 😂