# TimeoutError

**URL:** https://forum.rasa.com/t/timeouterror/52147
**Category:** Rasa Open Source
**Created:** [March 23, 2022, 3:31pm UTC](https://forum.rasa.com/t/timeouterror/52147 "2022-03-23T15:31:04Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![naveenjr](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@naveenjr](https://forum.rasa.com/u/naveenjr)
#### Post date: [March 23, 2022, 3:31pm UTC](https://forum.rasa.com/t/timeouterror/52147/1 "2022-03-23T15:31:04Z")

</div>

i am getting error when the action is taking some API calls are it is taking more than 8-10 minutes to process this API call.

error message

```auto
asyncio.exceptions.TimeoutError
  - Encountered an exception while running action 'action_get_wait'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
Traceback (most recent call last):
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\rasa\core\processor.py", line 772, in _run_action
    events = await action.run(
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\rasa\core\actions\action.py", line 685, in run
    response = await self.action_endpoint.request(
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\rasa\utils\endpoints.py", line 163, in request
    async with session.request(
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\aiohttp\client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\aiohttp\client.py", line 544, in _request
    await resp.start(conn)
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\aiohttp\client_reqrep.py", line 905, in start
    self._continue = None
  File "D:\DSUsers\uie83944\Anaconda\envs\rasa_2\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

```

---

<div class="post-metadata">

### Author: ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)
#### Post date: [March 23, 2022, 7:14pm UTC](https://forum.rasa.com/t/timeouterror/52147/2 "2022-03-23T19:14:33Z")

</div>

What errors do you see in your actions terminal (where you ran `rasa run actions`)?

Furthermore, if the API call is taking that long, it’s the API’s fault, not Rasa’s.

---

<div class="post-metadata">

### Author: ![lis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lis/32/18141_2.png) [@lis](https://forum.rasa.com/u/lis)
#### Post date: [March 24, 2022, 6:18am UTC](https://forum.rasa.com/t/timeouterror/52147/3 "2022-03-24T06:18:09Z")

</div>

@naveenjr,

Check this out → [rasa/constants.py at 8a18d62f433f399443ebb62030cea3b64a58881c · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/blob/8a18d62f433f399443ebb62030cea3b64a58881c/rasa/core/constants.py#L21) and [rasa/action.py at 8a18d62f433f399443ebb62030cea3b64a58881c · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/blob/8a18d62f433f399443ebb62030cea3b64a58881c/rasa/core/actions/action.py#L741)

Maybe if there is a way to change the default response time (which is 5 minutes) you should be good to go.

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [March 24, 2022, 9:08am UTC](https://forum.rasa.com/t/timeouterror/52147/4 "2022-03-24T09:08:26Z")

</div>

Hello @naveenjr

> [@naveenjr](#):
>
> API calls are it is taking more than 8-10 minutes to process this API call.

Well, you need to read the documentation of the API (which you are using) how much request and in what period of time he can fetch. Secondly, to be honest if your API taking so much time to fetch the information then that is not the idle use-case, as bot should reply instantly witth all the processing, increasing time will not solve your issue. I hope this will help you. Good Luck!!

---

<div class="post-metadata">

### Author: ![naveenjr](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@naveenjr](https://forum.rasa.com/u/naveenjr)
#### Post date: [March 30, 2022, 12:03pm UTC](https://forum.rasa.com/t/timeouterror/52147/5 "2022-03-30T12:03:52Z")

</div>

@nik202API call is triggering RPA platforms. There jobs/process is relatively slow .

---

<div class="post-metadata">

### Author: ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)
#### Post date: [March 30, 2022, 12:41pm UTC](https://forum.rasa.com/t/timeouterror/52147/6 "2022-03-30T12:41:59Z")

</div>

> [@naveenjr](#):
>
> There jobs/process is relatively slow

For me, this is not an idle use case scenario, to be honest.

---

<div class="post-metadata">

### Author: ![lis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lis/32/18141_2.png) [@lis](https://forum.rasa.com/u/lis)
#### Post date: [March 31, 2022, 7:41am UTC](https://forum.rasa.com/t/timeouterror/52147/7 "2022-03-31T07:41:55Z")

</div>

@naveenjr if you are expecting a response from these RPA platforms that is to be sent back to the user, then you can maybe try to do this asynchronously using a message queue. Something like a event broker that rasa x uses to communicate with rasa open source. You can configure this in endpoints.yml.

---

<div class="post-metadata">

### Author: ![naveenjr](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@naveenjr](https://forum.rasa.com/u/naveenjr)
#### Post date: [March 31, 2022, 8:09am UTC](https://forum.rasa.com/t/timeouterror/52147/8 "2022-03-31T08:09:46Z")

</div>

thanks @lis

can you share some more lights on the implementation side ?

---

<div class="post-metadata">

### Author: ![lis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lis/32/18141_2.png) [@lis](https://forum.rasa.com/u/lis)
#### Post date: [March 31, 2022, 9:16am UTC](https://forum.rasa.com/t/timeouterror/52147/9 "2022-03-31T09:16:58Z")

</div>

@naveenjr, sure. how are you getting inputs from the user? What kind of channels are you using?

---

<div class="post-metadata">

### Author: ![naveenjr](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@naveenjr](https://forum.rasa.com/u/naveenjr)
#### Post date: [March 31, 2022, 9:44am UTC](https://forum.rasa.com/t/timeouterror/52147/10 "2022-03-31T09:44:54Z")

</div>

I am collecting inputs from user chat and send these input directly to RPA platform through API calls and giving user “wait” and “mail” option for getting output.

---

<div class="post-metadata">

### Author: ![lis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lis/32/18141_2.png) [@lis](https://forum.rasa.com/u/lis)
#### Post date: [March 31, 2022, 9:47am UTC](https://forum.rasa.com/t/timeouterror/52147/11 "2022-03-31T09:47:29Z")

</div>

@naveenjr, hmm, not entirely sure if I got your point right. But check if this helps - [Can we handle messages in an async manner in Rasa Enterprise? - #2 by ricwo](http://forum.rasa.com/t/can-we-handle-messages-in-an-async-manner-in-rasa-enterprise/25231/2).

In your case, from what I understand you could either send the results back to the user if the user opts for a “wait” option or send out a mail (which will be done asynchronously I believe?) if the user opts for “mail” option. I’m asking you to make the wait option to go asynchronously as well.

---

<div class="post-metadata">

### Author: ![SarthakG234](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sarthakg234/32/23562_2.png) [@SarthakG234](https://forum.rasa.com/u/SarthakG234)
#### Post date: [November 2, 2023, 8:20am UTC](https://forum.rasa.com/t/timeouterror/52147/12 "2023-11-02T08:20:03Z")

</div>

@naveenjr How did you increase default response time because in local system I am able to change default response time in virtual environment but I am dockerized the rasa assistant so how can I change over there?

---

<div class="post-metadata">

### Author: ![bhupender12a](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@bhupender12a](https://forum.rasa.com/u/bhupender12a)
#### Post date: [November 6, 2023, 2:56pm UTC](https://forum.rasa.com/t/timeouterror/52147/13 "2023-11-06T14:56:08Z")

</div>

thank you for share with us.[pikashow download](https://pikashow.fyi/get-apk/)
