Action not registered error

Exception: No registered Action found for name ‘action_example’. 127.0.0.1 - - [2018-09-27 18:52:44] “POST /webhook HTTP/1.1” 500 412 0.001259

rasa_core.actions.action - Failed to run custom action ‘action_example’. 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 2018-09-27 18:52:44 ERROR rasa_core.processor - Encountered an exception while running action ‘action_example’. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code. 2018-09-27 18:52:44 ERROR rasa_core.processor - Failed to execute custom action.

actions.py location in along side the action.py rasa core

from rasa_core_sdk import Action

class ActionTest(Action): def name(self):

  return "action_example"

def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] dispatcher.utter_template(“utter_ask_name”, tracker)

Domain.yml

slots: name: type: text

intents:

  • Greet
  • affirm
  • deny
  • close

templates: utter_ask_name: - “May I have your first and last name please?”

actions:

  • utter_ask_name
  • action_example

stories :

Generated Story -2116955147822496342

  • Greet
    • action_example

story 2

  • deny
    • action_example

Generated Story 391231716455346403042

  • Greet
    • action_example

@azizullah2017

Did you find any solution?

yes, have you added you action in your domain file ?? you have to add the 'action example ’ in list of actions in domain file. and check the location of actions where is located and check where the location you are referring these. and check your endpoint file too. feel free to ask.

Error : – 2019-04-19 09:31:35 ERROR rasa_core_sdk.executor - Failed to register package ‘actions.actions’

Docker-compose file:

    version: '3.0'

services:
   rasa_core:
    image: rasa/rasa_core:latest
    networks: ['rasa-network']
   ports:
   - "5005:5005"
    volumes:
  - "./rasa-app-data/models/current/dialogue:/app/model"
    - "./rasa-app-data/config:/app/config"
    - "./rasa-app-data/project:/app/project"
 command:
  - start
  - -d
  - ./model
  - -c
  - rest
  - -u
 - current/nlu
 - --endpoints
 - config/endpoints.yml

  action_server:
     image: rasa/rasa_core_sdk:latest
     networks: ['rasa-network']
     ports:
     - "5055:5055"
    volumes:
     - "./rasa-app-data/actions:/app/actions"

  rasa_nlu:
    image: rasa/rasa_nlu:latest-full
    networks: ['rasa-network']
    ports:
    - "5000:5000"
    volumes:
    - "./rasa-app-data/models/:/app/projects"
    - "./rasa-app-data/logs:/app/logs"

  duckling:
     image: rasa/duckling:latest
     networks: ['rasa-network']
     ports:
     - "8000:8000

networks: {rasa-network: {}}

can you share yourdomain.yml file