Closed liorbp closed 8 years ago
I had this problem... quick fix update the connect_websocket method with "MMAUTHTOKEN" rather than "MMTOKEN"
Could be grossly misunderstanding as I have not dug through any more of the project but might help anyone who comes to go through this ticket properly.
The above update appears to work though.
Damn you're right! I just compared this to how a regular request looks like from my web-browser. I almost missed that :)
Thank you so much!
Hi. Thanks for your report. I see this changes on MM master https://github.com/mattermost/platform/blob/master/model/session.go#L12 Bug was fixed and compatible with old versions.
I cannot comment for @liorbp however I installed via pip into a virtual environment and it did pull mattermost-bot==1.0.13 a following pip install -U mattermost-bot
did pull the latest version though (without the problem) so does not seem to be reproducible.
Can only say at some point this morning I managed to pull 1.0.13 rather than 1.0.14 without making the specification for a previous version.
Seems like mattermost_bot is unable to maintain the websocket session. After successfully connecting the bot to my team channel an exception is being raised:
Using the internal IP instead of localhost didn't had any affect. Intercepting the network with Wireshark brings up this error from the server:
I'm using mattermost_bot latest release on Linux Mint. websocket-client-0.35.0 (I also tried to use 0.34.0) requests 2.9.1 six 1.5.2