# Error while calling custom action

**URL:** https://forum.rasa.com/t/error-while-calling-custom-action/23593
**Category:** Rasa Open Source
**Created:** [January 16, 2020, 12:21pm UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593 "2020-01-16T12:21:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![navneet](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@navneet](https://forum.rasa.com/u/navneet)
#### Post date: [January 16, 2020, 12:21pm UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593/1 "2020-01-16T12:21:48Z")

</div>

rasa.core.actions.action - Failed to run custom action ‘action\_check\_uhid’. Action server responded with a non 200 status code of 0. Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 0, message=‘Attempt to decode JSON with unexpected mimetype: text/html’, url=URL(‘[http://localhost:5002/webhook](http://localhost:5002/webhook)’) 2020-01-16 15:48:47 ERROR rasa.core.processor - Encountered an exception while running action ‘action\_check\_uhid’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

---

<div class="post-metadata">

### Author: ![Arjaan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjaan/32/5754_2.png) [@Arjaan](https://forum.rasa.com/u/Arjaan)
#### Post date: [January 16, 2020, 5:47pm UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593/2 "2020-01-16T17:47:24Z")

</div>

Hi @navneet,

It seems that your action server is not accessible. Was it up & running?

If you are using the [Rasa SDK](https://rasa.com/docs/rasa/api/rasa-sdk/#rasa-sdk) on your local machine with default port 5055, you can check the health and the registered actions of your action server with these APIs:

- [http://localhost:5055/health](http://localhost:5055/health)
- [http://localhost:5055/actions](http://localhost:5055/actions)

---

<div class="post-metadata">

### Author: ![navneet](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@navneet](https://forum.rasa.com/u/navneet)
#### Post date: [January 16, 2020, 5:58pm UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593/3 "2020-01-16T17:58:44Z")

</div>

Hi @ArjaanThank u for respond. As u said I tried these two API’s…

- [http://localhost:5055/health](http://localhost:5055/health) – {“status”:“ok”}
- [http://localhost:5055/actions](http://localhost:5055/actions) – [{“name”:“action\_check\_uhid”}]

Still the issue is same. Kindly help

---

<div class="post-metadata">

### Author: ![Arjaan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjaan/32/5754_2.png) [@Arjaan](https://forum.rasa.com/u/Arjaan)
#### Post date: [January 16, 2020, 6:47pm UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593/4 "2020-01-16T18:47:09Z")

</div>

Hi @navneet,

Can you run the action server with the `--debug` parameter?

```bash
rasa run actions --debug

```

Then, when rasa asks the action server to execute your custom action, you should see something like this in the output printed by the action server:

```bash
...
2020-01-16 13:43:33 DEBUG rasa_sdk.executor - Received request to run 'action_check_uhid'
2020-01-16 13:43:33 DEBUG rasa_sdk.executor - Finished running 'action_check_uhid'

```

---

<div class="post-metadata">

### Author: ![navneet](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@navneet](https://forum.rasa.com/u/navneet)
#### Post date: [January 23, 2020, 10:37am UTC](https://forum.rasa.com/t/error-while-calling-custom-action/23593/5 "2020-01-23T10:37:41Z")

</div>

Hey Thank you… I got my issue i use some different port in my endpoint.yml… Thanks alot…
