# Error while running api call

**URL:** <https://forum.rasa.com/t/error-while-running-api-call/13464>\
**Category:** Rasa Open Source\
**Created:** [July 24, 2019, 12:12pm UTC](https://forum.rasa.com/t/error-while-running-api-call/13464 "2019-07-24T12:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya1994](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@surya1994](https://forum.rasa.com/u/surya1994)\
**Post date:** [July 24, 2019, 12:12pm UTC](https://forum.rasa.com/t/error-while-running-api-call/13464/1 "2019-07-24T12:12:41Z")

</div>

Hi

i am getting following error when i run my api call .can you please let me know how to resolve the below error.

2019-07-24 07:27:30 ERROR rasa.core.processor - Encountered an exception while running action ‘action\_outstanding\_amount\_preprocess’. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code. 2019-07-24 07:27:30 DEBUG rasa.core.processor - Failed to execute custom action. Traceback (most recent call last): File “/u01/app/anaconda3/envs/rasa/lib/python3.6/site-packages/rasa/core/actions/action.py”, line 397, in run json=json\_body, method=“post”, timeout=DEFAULT\_REQUEST\_TIMEOUT File “/u01/app/anaconda3/envs/rasa/lib/python3.6/asyncio/coroutines.py”, line 110, in **next** return self.gen.send(None) File “/u01/app/anaconda3/envs/rasa/lib/python3.6/site-packages/rasa/utils/endpoints.py”, line 142, in request resp.status, resp.reason, await resp.content.read() rasa.utils.endpoints.ClientResponseError: 500, INTERNAL SERVER ERROR, body=‘b’\n500 Internal Server Error\n

# Internal Server Error
\n

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

\n’’

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “/u01/app/anaconda3/envs/rasa/lib/python3.6/site-packages/rasa/core/processor.py”, line 439, in \_run\_action events = await action.run(output\_channel, nlg, tracker, self.domain) File “/u01/app/anaconda3/envs/rasa/lib/python3.6/asyncio/coroutines.py”, line 110, in **next** return self.gen.send(None) File “/u01/app/anaconda3/envs/rasa/lib/python3.6/site-packages/rasa/core/actions/action.py”, line 419, in run raise Exception(“Failed to execute custom action.”) from e

My observation: I added Exception case also but it is not working and i also check the url in postman but it is taking \< 400000 ms to give back response but my action is not waiting that much time so it is throwing that response down message correct me if i am wrong and also please let me how to solve this case

Thanks

---

<div class="post-metadata">

**Author:** ![anurag](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anurag](https://forum.rasa.com/u/anurag)\
**Post date:** [April 18, 2020, 5:11pm UTC](https://forum.rasa.com/t/error-while-running-api-call/13464/2 "2020-04-18T17:11:57Z")

</div>

Hi @surya1994 - Were you able to fix this problem. I am facing a similar issue.

---

<div class="post-metadata">

**Author:** ![SowmyaBalam](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@SowmyaBalam](https://forum.rasa.com/u/SowmyaBalam)\
**Post date:** [September 15, 2022, 4:24pm UTC](https://forum.rasa.com/t/error-while-running-api-call/13464/3 "2022-09-15T16:24:44Z")

</div>

Hi I am facing the same issue. But the error is Response Timeout instead of internal error.

Please help me, If you got solution for this.
