question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

got concurrent.futures._base.CancelledError

See original GitHub issue

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):

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:48 (29 by maintainers)

github_iconTop GitHub Comments

2reactions
tmbocommented, Sep 3, 2019

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.

1reaction
tormath1commented, Jul 22, 2019

@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 😂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting `concurrent.futures._base.CancelledError` from ...
I'm getting the following exception from a binary tree that I'm building from futures (based largely on an example in the dask docs...
Read more >
Error "concurrent.futures._base.CancelledError" on server ...
The reason is that the underlying socket has been closed and websockets is trying to cancel the task running Handler() .
Read more >
concurrent.futures._base.CancelledError with long running ...
Hello! I have a setup where I'm running rasa docker images (version 1.10.8) for rasa itself and the other one for action server....
Read more >
concurrent.futures — Launching parallel tasks
If the future is cancelled before completing then CancelledError will be raised. If the call raised an exception, this method will raise the...
Read more >
The mysterious concurrent.futures._base.CancelledError out ...
Task will catch CancelledError for you. This means that once all the asyncio.gather() awaitables have completed, then you'll get the first error ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found