Rasa Server Timeout Error

When I am trying to run an action which takes around 40-50 sec (as it requires sending a mail), the rasa server is crashing due to a timeout error with the following trace:

Traceback (most recent call last): File “c:\users\10685510\desktop\venv\lib\site-packages\rasa\core\processor.py”, line 750, in _run_action output_channel, nlg, temporary_tracker, self.domain File “c:\users\10685510\desktop\venv\lib\site-packages\rasa\core\actions\action.py”, line 613, in run json=json_body, method=“post”, timeout=DEFAULT_REQUEST_TIMEOUT File “c:\users\10685510\desktop\venv\lib\site-packages\rasa\utils\endpoints.py”, line 151, in request **kwargs, File “c:\users\10685510\desktop\venv\lib\site-packages\aiohttp\client.py”, line 1012, in aenter self._resp = await self._coro File “c:\users\10685510\desktop\venv\lib\site-packages\aiohttp\client.py”, line 504, in _request await resp.start(conn) File “c:\users\10685510\desktop\venv\lib\site-packages\aiohttp\client_reqrep.py”, line 847, in start message, payload = await self._protocol.read() # type: ignore # noqa File “c:\users\10685510\desktop\venv\lib\site-packages\aiohttp\streams.py”, line 591, in read await self._waiter concurrent.futures._base.CancelledError

@CAkhil share rasa --version whilst activating environment.

@nik202 Rasa Version : 2.1.2 Rasa SDK Version : 2.8.2

@CAkhil Akhil for a reason I asked for while activating environment share me the screenshot.

In your Virtual environment:


Change the default value of DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS to 60

@CAkhil Akhil you not using Anaconda? and you directly install the Rasa in cmd? Is that so? and what is the reason of using rasa version 2.1.2 ?

I am using a virtual environment in cmd…The reason started with 2.1.2 is that is was first developed by someone else who started with that version long back

@CAkhil I’d recommend to install anaconda and install rasa version 2.8.1 and rasa-sdk 2.8.1 and train the model and do let me know if issue persist? Is that ok?

Please install Anaconda from Anaconda | Individual Edition , then create the conda environment using the following command

  1. conda create -n rasa3 python=3.8
  2. conda activate rasa 3

For Rasa Open Source:

`pip install rasa==2.8.1`
`pip install rasa-sdk==2.8.1'

check version rasa --version its install or not

For Installing basic project:

rasa init or you can use your current project as well while replacing the files.

Sure @nik202 …I have a doubt…what would be the difference if i use cmd instead of anaconda?..also is it okay if directly use 2.8.1 in cmd instead of anaconda?

@CAkhil Well, the best practise we follow is to use anaconda environment, but try install rasa 2.8.1. Hope that help you.

Okay Thanks…I will try and let you know…

@CAkhil No worries!

Still the same error persists with this solution

Which version of python is preferred for rasa 2.8.1? @nik202

@CAkhil 3.6,3.7 or 3.8 any one I have 3.8 bro

Hi @nik202 , I followed the steps you suggested and i am not getting any timeout error but the action is not working properly…Could u help me out

@akelad …Hi could u help me out with this

@CAkhil Is you rasa server is up and running as mentioned in the first post? Yes OR No?

If yes please close this thread as a solution and open a new thread with issue of actions.

Yes…it is up and running