Failed to run custom action

Hi All,

I facing issue while calling submit() inside custom actions.Mine custom action and Error are below.

action.py

class ActionAskPoints(Action): RANDOMIZE = False @staticmethod def required_fields(): return [ EntityFormField(“number”, “Transaction_ID”), ] def name(self): return ‘action_points’ def submit(self, dispatcher, tracker, domain):

    Transaction_ID = tracker.get_slot("Transaction_ID")
    response = """action_points . Enjoy !!"""
    dispatcher.utter_message(response)

Error: Hi Can you please add points to Transaction ID:’ Failed to run custom action ‘action_add_points’. 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

Action server Error: ERROR:flask.app:Exception on /webhook [POST] Traceback (most recent call last): NotImplementedError 127.0.0.1 - - [2018-10-15 18:48:39] “POST /webhook HTTP/1.1” 500 412 0.021998

In same custom action with run() i am able to run. Please let me know what correction required for submit().

Thank you

[Solved]

How did you solve it?