I have a Mattermost site running locally and exposed at localhost:8065. I have a Rasa instance running
rasa run --debug locally as well, exposed as localhost:5005. I created an outgoing webhook in Mattermost according to your doc at:
https://rasa.com/docs/rasa/user-guide/connectors/mattermost/#getting-credentials and set the Callback URL to
Does that mean I need to edit the credentials.yml, mattermost section to look like:
mattermost: url: "http://localhost:8065/hooks/xx615yapapbipeqyqtn3xasc4a" team: "Groupname" user: "Username" pw: "********"
Where the url is the outgoing webhook with it’s token. Also had to AllowUntrustedInternalConnections to 127.0.0.1/8
2019-10-10 15:23:46 ERROR rasa.core.channels.mattermost - Exception when trying to handle message.'token' 2019-10-10 15:23:46 DEBUG rasa.core.channels.mattermost - 'token' Traceback (most recent call last): File "c:\programdata\anaconda3\envs\rasa\lib\site-packages\rasa\core\channels\mattermost.py", line 98, in webhook self.url, self.team, self.user, self.pw, self.bot_channel File "c:\programdata\anaconda3\envs\rasa\lib\site-packages\rasa\core\channels\mattermost.py", line 27, in __init__ super(MattermostBot, self).login(user, pw) File "c:\programdata\anaconda3\envs\rasa\lib\site-packages\mattermostwrapper\wrapper.py", line 39, in login self.token = p.headers["Token"] # Store the token for further requests File "c:\programdata\anaconda3\envs\rasa\lib\site-packages\requests\structures.py", line 52, in __getitem__ return self._store[key.lower()] KeyError: 'token'
and no response from the bot.So something is being sent to rasa (I’m trying to find the exact json) and rasa is choking on it.