Using Rasa 1.10.8 and angular 9
Webhook working fine but when I change it to Socket IO, it emits the message to the Rasa bot but it’s doesn’t send back to the front end
2020-07-09 13:34:43,375 [DEBUG] Recreating tracker for id '5W7ilZ624HeykYGQ'
2020-07-09 13:34:47,037 [DEBUG] Recreating tracker for id '5W7ilZ624HeykYGQ'
2020-07-09 13:34:47,303 [DEBUG] Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.998452365398407}' and entities '[]'
2020-07-09 13:34:47,309 [DEBUG] Logged UserUtterance - tracker now has 5 events.
2020-07-09 13:34:47,314 [DEBUG] Current tracker state [None, None, None, None, {'slot_name_0': 1.0}, {'slot_name_0': 1.0, 'intent_greet': 1.0, 'prev_action_greet_user': 1.0}]
2020-07-09 13:34:47,316 [DEBUG] Launch DeLorean...
2020-07-09 13:34:47,318 [DEBUG] Current tracker state [None, None, None, None, {'slot_name_0': 1.0}, {'slot_name_0': 1.0, 'intent_greet': 1.0, 'prev_action_greet_user': 1.0}]
2020-07-09 13:34:47,320 [DEBUG] There is no memorised next action
2020-07-09 13:34:47,321 [DEBUG] There is no active form
2020-07-09 13:34:47,323 [DEBUG] There is no mapped action for the predicted intent, 'greet'.
2020-07-09 13:34:47,324 [DEBUG] Predicted next action using policy_0_TEDPolicy
2020-07-09 13:34:47,325 [DEBUG] Predicted next action 'action_listen' with confidence 0.91.
2020-07-09 13:34:47,326 [DEBUG] Action 'action_listen' ended with events '[]'.
2020-07-09 13:34:47,328 [DEBUG] Deleted lock for conversation '5W7ilZ624HeykYGQ'.
2020-07-09 13:35:41,447 [ERROR] Exception occurred while handling uri: unknown
NoneType: None
It looks like your bot is predicting action_listen, so you won’t see anything on the front end; can you try it with some message that actually triggers a response?
2020-07-20 13:29:51 DEBUG rasa.core.processor - Received user message ‘hi’ with intent ‘{‘name’: ‘greet’, ‘confidence’: 0.9921329021453857}’ and entities ‘[]’
2020-07-20 13:29:51 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
2020-07-20 13:29:51 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘intent_greet’: 1.0, ‘prev_action_listen’: 1.0}]
2020-07-20 13:29:51 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘action_greet_user’
2020-07-20 13:29:51 DEBUG rasa.core.policies.form_policy - There is no active form
2020-07-20 13:29:51 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_AugmentedMemoizationPolicy
2020-07-20 13:29:51 DEBUG rasa.core.processor - Predicted next action ‘action_greet_user’ with confidence 1.00.
2020-07-20 13:29:51 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_greet_user’.
2020-07-20 13:29:54 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘dsB75PDxcSLFEgy6zD8ZoZLe1zIAHURJyBLpMG20wibDmfa5EVMxLkKIXk9F0AiGnViFtRdJ4L6’.
Socket Log :
2020-07-20 13:31:47 DEBUG rasa.core.processor - Received user message ‘hi’ with intent ‘{‘name’: ‘greet’, ‘confidence’: 0.9921329021453857}’ and entities ‘[]’
2020-07-20 13:31:47 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
2020-07-20 13:31:47 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘prev_action_listen’: 1.0, ‘intent_greet’: 1.0}]
2020-07-20 13:31:47 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘action_greet_user’
2020-07-20 13:31:47 DEBUG rasa.core.policies.form_policy - There is no active form
2020-07-20 13:31:47 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_AugmentedMemoizationPolicy
2020-07-20 13:31:47 DEBUG rasa.core.processor - Predicted next action ‘action_greet_user’ with confidence 1.00.
2020-07-20 13:31:47 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_greet_user’.
These lines look different from the original post; I take it the behaviour is still the same? Because the logs from socketio & http now match, so the issues isn’t there