I am using a Jupyter notebook to train both nlu(intent/entity classifier) and rasa core(Dialog management). I have a set of custom actions which are stored in a separate actions.py file.
content of endpoints.yml :- action_endpoint: url: “http://action:5055/webhook”
I start the action server and it looks good :- python -m rasa_core_sdk.endpoint --actions actions
Output:- INFO:main:Starting action endpoint server… DEBUG:pykwalify.compat:Using yaml library: /home/arghya/anaconda3/envs/myenv/lib/python3.6/site-packages/ruamel/yaml/init.py INFO:rasa_core_sdk.executor:Registered function for ‘action_save_city_name’. INFO:rasa_core_sdk.executor:Registered function for ‘action_save_model_name’. INFO:rasa_core_sdk.executor:Registered function for ‘action_slot_reset’. INFO:rasa_core_sdk.executor:Registered function for ‘action_get_service_centre_location’. INFO:rasa_core_sdk.executor:Registered function for ‘action_get_shop_location’. INFO:rasa_core_sdk.executor:Registered function for ‘action_get_model_price’. INFO:rasa_core_sdk.executor:Registered function for ‘action_get_model_config’. INFO:main:Action endpoint is up and running. on (‘0.0.0.0’, 5055)
after which i am starting the rasa core dialog engine in a different terminal :- python -m rasa_core.run -d models/dialogue -u models/nlu/default/current --endpoints endpoints.yml
Output :- The dialog engine starts but gives “failed to run custom action” error when it is about to run a custom action.
ERROR rasa_core.actions.action - Failed to run custom action ‘action_save_city_name’. Couldn’t connect to the server at ‘http://action:5055/webhook’. Is the server running? Error: HTTPConnectionPool(host=‘action’, port=5055): Max retries exceeded with url: /webhook (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fd5c568d470>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’,)) 2019-01-29 16:57:45 ERROR rasa_core.processor - Encountered an exception while running action ‘action_save_city_name’. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
What am I doing wrong?