Hi @mina.fsh, @stephens, @athenasaurav. Same error for me with very default configuration: Everythink OK wile chatting, but once button (interactivity) should be pressed error occured. File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/sanic/request.py”, line 177, in load_json raise InvalidUsage(“Failed when parsing body as json”) sanic.exceptions.InvalidUsage: Failed when parsing body as json
Detailed debug: 2020-04-14 22:53:57 DEBUG rasa.core.tracker_store - Recreating tracker from sender id ‘UT4KC4Q4U’ 2020-04-14 22:53:57 DEBUG rasa.core.processor - Received user message ‘hey’ with intent ‘{‘name’: ‘greet’, ‘confidence’: 0.9118240223407343}’ and entities ‘[]’ 2020-04-14 22:53:57 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 47 events. 2020-04-14 22:53:57 DEBUG rasa.core.policies.memoization - Current tracker state [{‘prev_action_listen’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_utter_ask_domain’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_utter_ask_domain’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}] 2020-04-14 22:53:57 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-14 22:53:58 DEBUG rasa.core.policies.mapping_policy - The predicted intent ‘greet’ is mapped to action ‘utter_ask_domain’ in the domain. 2020-04-14 22:53:58 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_MappingPolicy 2020-04-14 22:53:58 DEBUG rasa.core.processor - Predicted next action ‘utter_ask_domain’ with confidence 1.00. 2020-04-14 22:53:58 DEBUG rasa.core.processor - Action ‘utter_ask_domain’ ended with events ‘[BotUttered(‘Welcome to Knowledge Base Assistant. Which skills you would like to improve? You can easily change domain in future by simply ask assistant to ‘change domain’ or alike request:)’, {“elements”: null, “quick_replies”: null, “buttons”: [{“payload”: “/set_domain{“domain”: “Agile”}”, “title”: “Agile skills”}, {“payload”: “/set_domain{“domain”: “Startup”}”, “title”: “Startup skills”}], “attachment”: null, “image”: null, “custom”: null}, {}, 1586894038.061376)]’. 2020-04-14 22:53:58 DEBUG slack.web.slack_response - Received the following response: {‘ok’: True, ‘channel’: ‘D011ZUAKES0’, ‘ts’: ‘1586894038.004400’, ‘message’: {‘bot_id’: ‘B011ZUAK6J0’, ‘type’: ‘message’, ‘text’: “Welcome to Knowledge Base Assistant. Which skills you would like to improve? You can easily change domain in future by simply ask assistant to ‘change domain’ or alike request:)”, ‘user’: ‘U011ZUAK7V2’, ‘ts’: ‘1586894038.004400’, ‘team’: ‘TT539R8V6’, ‘bot_profile’: {‘id’: ‘B011ZUAK6J0’, ‘deleted’: False, ‘name’: ‘EnderTuring’, ‘updated’: 1586879448, ‘app_id’: ‘A012GNFGESC’, ‘icons’: {‘image_36’: ‘https://a.slack-edge.com/80588/img/plugins/app/bot_36.png’, ‘image_48’: ‘https://a.slack-edge.com/80588/img/plugins/app/bot_48.png’, ‘image_72’: ‘https://a.slack-edge.com/80588/img/plugins/app/service_72.png’}, ‘team_id’: ‘TT539R8V6’}, ‘blocks’: [{‘type’: ‘section’, ‘block_id’: ‘qlP9’, ‘text’: {‘type’: ‘plain_text’, ‘text’: “Welcome to Knowledge Base Assistant. Which skills you would like to improve? You can easily change domain in future by simply ask assistant to ‘change domain’ or alike request:)”, ‘emoji’: True}}, {‘type’: ‘actions’, ‘block_id’: ‘UHo’, ‘elements’: [{‘type’: ‘button’, ‘action_id’: ‘olkTx’, ‘text’: {‘type’: ‘plain_text’, ‘text’: ‘Agile skills’, ‘emoji’: True}, ‘value’: ‘/set_domain{“domain”: “Agile”}’}, {‘type’: ‘button’, ‘action_id’: ‘c47Nm’, ‘text’: {‘type’: ‘plain_text’, ‘text’: ‘Startup skills’, ‘emoji’: True}, ‘value’: ‘/set_domain{“domain”: “Startup”}’}]}]}} 2020-04-14 22:53:58 DEBUG rasa.core.policies.memoization - Current tracker state [{‘prev_utter_ask_domain’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_utter_ask_domain’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}, {‘prev_utter_ask_domain’: 1.0, ‘slot_domain_0’: 1.0, ‘intent_greet’: 1.0}] 2020-04-14 22:53:58 DEBUG rasa.core.policies.memoization - There is no memorised next action 2020-04-14 22:53:58 DEBUG rasa.core.policies.mapping_policy - The mapped action, ‘utter_ask_domain’, for this intent, ‘greet’, was executed last so MappingPolicy is returning to action_listen. 2020-04-14 22:53:58 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_MappingPolicy 2020-04-14 22:53:58 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2020-04-14 22:53:58 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’. 2020-04-14 22:53:58 DEBUG rasa.core.tracker_store - Tracker with sender_id ‘UT4KC4Q4U’ stored to database 2020-04-14 22:53:58 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘UT4KC4Q4U’. 2020-04-14 22:53:58 WARNING rasa.core.channels.slack - Received message on unsupported channel: D011ZUAKES0 [2020-04-14 22:54:01 +0300] [15799] [ERROR] Exception occurred while handling uri: ‘http://edd4eeb3.ngrok.io/webhooks/slack/webhook’ Traceback (most recent call last): File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/sanic/request.py”, line 173, in load_json self.parsed_json = loads(self.body) ValueError: Expected object or value
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/sanic/app.py”, line 976, in handle_request response = await response File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/rasa/core/channels/slack.py”, line 356, in webhook metadata = self.get_metadata(request) File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/rasa/core/channels/slack.py”, line 329, in get_metadata slack_event = request.json File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/sanic/request.py”, line 167, in json self.load_json() File “/Users/evios/opt/anaconda3/lib/python3.7/site-packages/sanic/request.py”, line 177, in load_json raise InvalidUsage(“Failed when parsing body as json”) sanic.exceptions.InvalidUsage: Failed when parsing body as json