# Custom action failed to execute

**URL:** <https://forum.rasa.com/t/custom-action-failed-to-execute/41728>\
**Category:** Rasa Open Source\
**Created:** [March 26, 2021, 4:48am UTC](https://forum.rasa.com/t/custom-action-failed-to-execute/41728 "2021-03-26T04:48:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vidush\_05](https://avatars.discourse-cdn.com/v4/letter/v/b9bd4f/32.png) [@Vidush\_05](https://forum.rasa.com/u/Vidush_05)\
**Post date:** [March 26, 2021, 4:48am UTC](https://forum.rasa.com/t/custom-action-failed-to-execute/41728/1 "2021-03-26T04:48:48Z")

</div>

I am trying to run a custom action file and I got this error. My bot is running on the amazon ec2 instance, Can someone help me on this issue! This is the error it shows in the terminal,

Failed to run custom action ‘action\_get\_skip\_campaigns’. Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 500 Server Error: INTERNAL SERVER ERROR for url: [http://localhost:5055/webhook](http://localhost:5055/webhook) 2021-03-26 04:37:15 ERROR rasa\_core.processor - Encountered an exception while running action ‘action\_get\_skip\_campaigns’. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code. 2021-03-26 04:37:15 ERROR rasa\_core.processor - Failed to execute custom action.

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [March 26, 2021, 10:34am UTC](https://forum.rasa.com/t/custom-action-failed-to-execute/41728/2 "2021-03-26T10:34:18Z")

</div>

Hi @Vidush_05!

Is it possible for you to share your custom action code?

And another question for clarification: How did you deploy your action server?
