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)

---- ----

I have provided
bot url -
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.