ERROR asyncio - Task exception was never retrieve

We have similar issue, please check the screenshot and error below

ERROR asyncio - Task exception was never retrieved future: <Task finished name=‘Task-2’ coro=<configure_app..run_cmdline_io() done, defined at /mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/rasa/core/run.py:131> exception=TimeoutError()>

Task exception was never retrieved future: <Task finished name=‘Task-2’ coro=<configure_app..run_cmdline_io() done, defined at /mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/rasa/core/run.py:131> exception=TimeoutError()> Traceback (most recent call last): File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/rasa/core/run.py”, line 135, in run_cmdline_io await console.record_messages( File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/rasa/core/channels/console.py”, line 182, in record_messages async for response in bot_responses: File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/rasa/core/channels/console.py”, line 137, in _send_message_receive_stream async for line in resp.content: File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/aiohttp/streams.py”, line 39, in anext rv = await self.read_func() File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/aiohttp/streams.py”, line 338, in readline await self._wait(“readline”) File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/aiohttp/streams.py”, line 306, in _wait await waiter File “/mnt/d/Jinay/Work-Sofftware/DATA/rasa-venv/lib/python3.8/site-packages/aiohttp/helpers.py”, line 656, in exit raise asyncio.TimeoutError from None

were you talking to the bot using rasa shell?

Yes

Any other suggestions for this? I am getting the same error within my custom policy and I am not sure why! I have tried out a bunch of the solutions suggested here but none seem to be the fix with Rasa 3.0

Can you please tell me in this console.py file where can I change this DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS = 10 ?

thanks a lot , worked for me

@mansimht You can find the console.py file in C:\Program Files\Python37\Lib\site-packages\rasa\core\channels on windows. Or Search for /usr/local/lib/python3.7/dist-packages/rasa/core/channels if you are using ubuntu and installed rasa using pip.

Edit the console.py file line number 26, change the 10 to 20 or 100.

Hope this helps.

I believe this is the solution if your custom action is taking more than 10 seconds to complete or return the result. If the error is caused while running rasa, or while performing some other action. I am not sure if this will work.

1 Like

Hello there, I did find the console.py, but there is none DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS= 10 in there, is there any suggestion you can give me? Thanks in advance!

Hi all, I am using PyCharm and I have encountered the same problem. In my case I have solved it by simply running the “Invalidate Caches and Restart” option. I hope someone will find it helpful!

image

same isusue in my bot .whenver i bot giving sorry it is goiing into timeouterror please help.

i am providing my error.

asyncio - Task exception was never retrieved future: <Task finished coro=<RestInput.on_message_wrapper() done, defined at C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\channels\rest.py:33> exception=KeyError(‘action_two_stage_fallback’)> Traceback (most recent call last): File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\channels\rest.py”, line 47, in on_message_wrapper await on_new_message(message) File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\channels\channel.py”, line 89, in handler await app.agent.handle_message(message) File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\agent.py”, line 430, in handle_message return await self.processor.handle_message(message) File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\processor.py”, line 146, in handle_message tracker = await self.run_action_extract_slots(message.output_channel, tracker) File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\processor.py”, line 173, in run_action_extract_slots output_channel, self.nlg, tracker, self.domain File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\core\actions\action.py”, line 1171, in run mapping, tracker, domain File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\shared\core\slot_mappings.py”, line 115, in intent_is_desired mapping, domain, active_loop_name File “C:\Users\GM\anaconda3\envs\rasa3.0.2\lib\site-packages\rasa\shared\core\slot_mappings.py”, line 95, in _get_active_loop_ignored_intents form_ignored_intents = domain.forms[active_loop_name].get( KeyError: ‘action_two_stage_fallback’

stuck with same problem please help if you have solved this problem

I am facing the same issue as …can anyone help in this … I tried with quetionary == 1.4 as well it didn’t get resolved

Hi. I faced the same issue and solved it just by reinstalling rasa with “pip install rasa”. In my case it happened because I was working in two computers (with different python versions) and synced project from github.

Just another tip: there must be an active network adapter in your system.