# \[ERROR\] custom action TimeoutError

**URL:** <https://forum.rasa.com/t/error-custom-action-timeouterror/21940>\
**Category:** Rasa Open Source\
**Created:** [December 2, 2019, 3:41am UTC](https://forum.rasa.com/t/error-custom-action-timeouterror/21940 "2019-12-02T03:41:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yhdrytjd](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yhdrytjd](https://forum.rasa.com/u/yhdrytjd)\
**Post date:** [December 2, 2019, 3:41am UTC](https://forum.rasa.com/t/error-custom-action-timeouterror/21940/1 "2019-12-02T03:41:32Z")

</div>

HI, I have a long running task(selenium login to website and collect data) which takes more than 10 sec. The rasa shell raises the error: asyncio - Task exception was never retrieved

You can replicate the error by simply time.sleep(10) before return. What should I do in order to have long running task in custom action?

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [December 2, 2019, 8:44am UTC](https://forum.rasa.com/t/error-custom-action-timeouterror/21940/2 "2019-12-02T08:44:19Z")

</div>

It should be related to [Timeout error on rasa shell · Issue #4606 · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/issues/4606). Can you please verify? We are aware of the problem and gonna work on a solution as soon as possible.

---

<div class="post-metadata">

**Author:** ![yhdrytjd](https://avatars.discourse-cdn.com/v4/letter/y/e480ec/32.png) [@yhdrytjd](https://forum.rasa.com/u/yhdrytjd)\
**Post date:** [December 2, 2019, 9:07am UTC](https://forum.rasa.com/t/error-custom-action-timeouterror/21940/3 "2019-12-02T09:07:42Z")

</div>

I think so. Thank you.

---

<div class="post-metadata">

**Author:** ![saritapadoshi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saritapadoshi/32/13610_2.png) [@saritapadoshi](https://forum.rasa.com/u/saritapadoshi)\
**Post date:** [February 26, 2021, 2:31pm UTC](https://forum.rasa.com/t/error-custom-action-timeouterror/21940/4 "2021-02-26T14:31:13Z")

</div>

Hi Tanja is the solution to this problem of timeout error is by extending the timeout

DEFAULT\_STREAM\_READING\_TIMEOUT\_IN\_SECONDS = 30 in the config file

are there any other solution available please let me know
