rasa: got concurrent.futures._base.CancelledError
Rasa 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):
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 48 (29 by maintainers)
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
RestInputconnector 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 😂
Hi @erohmensing ,
If you mention this: https://github.com/RasaHQ/rasa/issues/3882#issuecomment-510117975, my container is running with this fix (from my fork: https://github.com/tormath1/rasa/commit/7b68556233667fe96c9be0671436563d3ac20ec1).
Good point, I’m going to try it.
Hey @tormath1, could you provide some more details on how to reproduce this issue? Did you use any specific configuration? I would also need to know what command you ran exactly. Thanks.
Thanks for raising this issue, @federicotdn will get back to you about it soon.