Rasa 2.0 slack integration error

I’ve been trying to integrate rasa with slack, below attached is my current work:

ngrok: POST /webhooks/slack/webhook 500 Internal Server Error

pycharm error raise when i send message from slack: Exception occurred while handling uri: ‘http://d4fcf0a5e8e0.ngrok.io/webhooks/slack/webhook’ Traceback (most recent call last): File “/home/faran/anaconda3/envs/HeyPeersChatBot/lib/python3.8/site-packages/sanic/app.py”, line 938, in handle_request response = await response File “/home/faran/anaconda3/envs/HeyPeersChatBot/lib/python3.8/site-packages/rasa/core/channels/slack.py”, line 421, in webhook text=self._sanitize_user_message( File “/home/faran/anaconda3/envs/HeyPeersChatBot/lib/python3.8/site-packages/rasa/core/channels/slack.py”, line 230, in _sanitize_user_message for uid_to_remove in uids_to_remove: TypeError: ‘NoneType’ object is not iterable

I am open for further questions. Thanks!

1 Like

Hi there! This is a known issue, and is fixed on master: Updated Slack Connector for new Events API by b-quachtran · Pull Request #6986 · RasaHQ/rasa · GitHub

Trying to get it patched out to be used earlier :slight_smile:

1 Like

Hi there, I have the same error, can anyone advise how to fix? Couldn’t find the solution. Please help.

Hi @MariamHar, this fix got merged into 2.1, so if you upgrade to the latest version it should work! https://rasa.com/docs/rasa/changelog#bugfixes

1 Like