rasa: Timeout error on rasa shell
Rasa version: 1.3.9
Python version: 3.6
Issue: https://forum.rasa.com/t/timeout-error-on-rasa-shell/19638
Error can be reproduced on examples/restaurantbot. Add a time.sleep(15) to any action and run the bot.
Error (including full traceback):
2019-10-14 10:18:37 ERROR asyncio - Task exception was never retrieved
future: <Task finished coro=<configure_app.<locals>.run_cmdline_io() done, defined at /Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/rasa/core/run.py:123> exception=TimeoutError()>
Traceback (most recent call last):
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/rasa/core/run.py", line 127, in run_cmdline_io
server_url=constants.DEFAULT_SERVER_FORMAT.format("http", port)
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/rasa/core/channels/console.py", line 138, in record_messages
async for response in bot_responses:
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/async_generator/_impl.py", line 366, in step
return await ANextIter(self._it, start_fn, *args)
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/async_generator/_impl.py", line 205, in throw
return self._invoke(self._it.throw, type, value, traceback)
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/async_generator/_impl.py", line 209, in _invoke
result = fn(*args)
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/rasa/core/channels/console.py", line 103, in send_message_receive_stream
async for line in resp.content:
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/aiohttp/streams.py", line 40, in __anext__
rv = await self.read_func()
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/aiohttp/streams.py", line 329, in readline
await self._wait('readline')
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/aiohttp/streams.py", line 297, in _wait
await waiter
File "/Users/tabergma/.virtualenv/rasa/lib/python3.6/site-packages/aiohttp/helpers.py", line 585, in __exit__
raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError
Command or request that led to error:
rasa shell
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 25 (9 by maintainers)
Commits related to this issue
- Reset the timeouts to 30s for DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS. https://github.com/RasaHQ/rasa/issues/4606 — committed to madhavikoduganti/Foodie by madhavikoduganti 4 years ago
I’m having the same issue. We use
rasa shellin development in order to have a lighter environment (just two containers needed, rasa-worker and the actions app). When we load a new model the API call toPUT /modeltakes more than 10 seconds, and the console crashes. Can you please add a config variable that overridesDEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS? Thanks!Got a similar problem when I start a bot in rest-mode with rasa==1.9.5
My action calls another REST-service and does several retries when it fails. This may take some. I could of course change this, but it would be way more convenient to have a configurable timeout. And also a possibility to inform the user somehow, see https://github.com/RasaHQ/rasa/issues/5588