We're Hiring!

Mattermost, Inc.

Permanent redirect error

WebSocketBadStatusException: Handshake status 308 Permanent Redirect

I am getting permanent redirect error. while trying to run the code (github link mentioned below)

---- https://github.com/attzonko/mmpy_bot ----

I have provided
bot url - http://own.cloud.mattermost.com/api/v4/sample_bot
bot_login - login ID
bot_password - **********
bot_token - *****************
bot_team - *******

can anyone please help me out with this issue?

Thanks in advance

Mattermost is redirecting to https, and the bot is not acting on the redirect. I have this same issue when using curl on a server doing the same. Replace the http with https in the url and the issue should be fixed.