JustinaPetr / Weatherbot_Tutorial

275 stars 446 forks source link

Bot not delivering messages to slack #98

Open noushadkabeer opened 5 years ago

noushadkabeer commented 5 years ago

First of all thank you for the updated tutorial. Keep up the great work! :-) Followed the instructions from -https://github.com/JustinaPetr/Weatherbot_Tutorial/tree/master/Full_Code_Latest. The server came up and slack connection is established, the messages from slack is delivered to the bot. However the response from the bot to slack is not getting delivered. What am I missing!?

I ran the server in debug mode and is logged as below, any inputs?

rasa run --credentials credentials.yml --debug 2019-07-21 18:49:59 DEBUG rasa.model - Extracted model to 'C:\Users\emper\AppData\Local\Temp\tmpujxs_qin'. 2019-07-21 18:49:59 DEBUG rasa.cli.utils - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead. 2019-07-21 18:50:02 DEBUG rasa.model - Extracted model to 'C:\Users\emper\AppData\Local\Temp\tmpklx71b31'. 2019-07-21 18:50:02 DEBUG sanic.root - CORS: Configuring CORS with resources: {'/': {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.'], 'expose_headers': None, 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}} 2019-07-21 18:50:02 DEBUG rasa.core.utils - Available web server routes: /webhooks/slack GET slack_webhook.health /webhooks/slack/webhook GET slack_webhook.webhook 2019-07-21 18:50:02 INFO root - Starting Rasa Core server on http://localhost:5005 2019-07-21 18:50:02 INFO root - Enabling coroutine debugging. Loop id 2314796340336. 2019-07-21 18:50:02 DEBUG rasa.model - Extracted model to 'C:\Users\emper\AppData\Local\Temp\tmp_j8_s08a'. 2019-07-21 18:50:03 INFO rasa.nlu.components - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-en'. 2019-07-21 18:50:03 DEBUG rasa.model - Extracted model to 'C:\Users\emper\AppData\Local\Temp\tmpmz8oipoz'. 2019-07-21 18:50:15 DEBUG rasa.core.agent - Created a new lock for conversation 'UE2G70E2E' 2019-07-21 18:50:15 DEBUG rasa.core.tracker_store - Creating a new tracker for id 'UE2G70E2E'. 2019-07-21 18:50:15 DEBUG rasa.core.processor - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.8356947888610757}' and entities '[]' 2019-07-21 18:50:15 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 2 events 2019-07-21 18:50:15 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}] 2019-07-21 18:50:15 DEBUG rasa.core.policies.memoization - There is a memorised next action '11' 2019-07-21 18:50:16 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy 2019-07-21 18:50:16 DEBUG rasa.core.processor - Predicted next action 'utter_greet' with confidence 1.00. 2019-07-21 18:50:16 DEBUG rasa.core.processor - Action 'utter_greet' ended with events '['BotUttered(text: Hello! How can I help?, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})']' 2019-07-21 18:50:18 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}] 2019-07-21 18:50:18 DEBUG rasa.core.policies.memoization - There is a memorised next action '0' 2019-07-21 18:50:18 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy 2019-07-21 18:50:18 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00. 2019-07-21 18:50:18 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]' 2019-07-21 18:50:18 DEBUG rasa.core.agent - Deleted lock for conversation 'UE2G70E2E' (unused)

Many thanks, Noushad

roddiraju commented 4 years ago

HI @noushadkabeer . Were you be able fix this? I am facing the same. Appreciate it.

roddiraju commented 4 years ago

Hi @JustinaPetr . While I can see the messages on the Action server and the run engine, I couldn't find much information on how to troubleshoot when the responses are not delivered back in the Slack app/channel. Any pointers will highly help. Thanks in advance.