Custom action failed to execute

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 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.

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?