Rasa Master Class Ep. 9 issue

Thanks in advance.

There is one issue that i am not getting actions done like api call when running on server. Actions are correctly predicted but the response is not delivered to the bot.

I m making a api call to google fetch some data and display in the chatbot. It was running properly in local rasa x and server.

link to my github repo : https://github.com/athenasaurav/CarBot.git

Does anyone have update on this.

Hey @athenasaurav are you still having this issue?

Yes i m still facing this issue.

Can I see the logs from rasa and the action server when this happens?

Hello everybody,

I know I am reopening an old thread, but I just thought it was better than creating a new one for the same topic. I followed the Master Class, and I can seem to be able to run my custom actions.

@akelad as you asked above I am sharing the logs

2020-06-25T08:42:15.442207233Z   model=model,
2020-06-25T08:42:15.442221333Z /opt/venv/lib/python3.7/site-packages/rasa/core/policies/keras_policy.py:265: FutureWarning: 'KerasPolicy' is deprecated and will be removed in version 2.0. Use 'TEDPolicy' instead.
2020-06-25T08:42:15.442236433Z   current_epoch=meta["epochs"],
2020-06-25T08:42:15.442278734Z 2020-06-25 08:42:15 ERROR    rasa.core.actions.action  - Failed to run custom action 'action_get_name'. Couldn't connect to the server at 'http://app:5055/webhook'. Is the server running? Error: Cannot connect to host app:5055 ssl:default [No address associated with hostname]
2020-06-25T08:42:15.442295934Z 2020-06-25 08:42:15 ERROR    rasa.core.processor  - Encountered an exception while running action 'action_get_name'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
2020-06-25T08:42:16.028834705Z 2020-06-25 08:42:16 ERROR    rasa.core.brokers.pika  - Could not open Pika channel at host 'rabbit'. Failed with error: 'NoneType' object has no attribute 'basic_publish'

this is how my docker-compose.override.yml looks like

Screen Shot 2020-06-25 at 09.50.17

Any help would be appreciated.

Thanks in advance

@jusce17 generally speaking I would always suggest creating a new thread if you encounter an issue, it’s more likely to be answered :smiley:

So the reason your action isn’t getting executed is because your app container is not available. I see in your docker-compose override file you’ve put the command to be pip install -r requirements.txt, that means that on start up the container is going to run that command and when it’s done running it will shut down. Do your custom actions contain custom packages? If yes, please follow these instructions: https://rasa.com/docs/rasa/user-guide/how-to-deploy/#building-an-action-server-image

Hey @akelad, ,my issue is resolved.

Thanks @akelad, custom actions . running as we speak :slight_smile:

@athenasaurav perhaps you can close this thread :grinning: