EionRobb / purple-mattermost

A libpurple/Pidgin plugin for Mattermost
GNU General Public License v3.0
93 stars 23 forks source link

Invalid or expired session, please login again. #117

Closed shaneonabike closed 5 years ago

shaneonabike commented 5 years ago

Thanks for this awesome plugin! It has been working for the last year or more, but recently I disabled one Mattermost account because I had been getting a lot of messages. I then re-enabled it today and I'm getting a strange error specifically: Invalid or expired session, please login again.

http: Timeout reached for request 0x55d59935dd40 (12:07:42) http: Request 0x55d59935dd40 performed without success. (12:07:42) mattermost: Got response: (12:07:42) connection: Connection error on 0x55d599a10490 (reason: 2 description: Bad username/password) (12:07:42) jabber: jabber_actions: have pep: NO

I feel that this is probably the most important section of the logs. It seems that it keeps trying but gets a timeout although I have no issue with the web interface.

After that we have

mattermost: Fetching url https://chat.somedomain.org/api/v4/users/me/status (12:07:42) mattermost: With postdata {"status":"online"} (12:07:42) http: Performing new request 0x55d599523300 to chat.somedomain.org. (12:07:42) GLib: g_source_remove: assertion 'tag > 0' failed (12:07:42) GLib: g_source_remove: assertion 'tag > 0' failed (12:07:42) http: Request 0x55d599523300 performed without success. (12:07:42) mattermost: Got response: (12:07:42) GLib: g_regex_unref: assertion 'regex != NULL' failed (12:07:42) GLib: g_regex_unref: assertion 'regex != NULL' failed

Is this really a cookie that is left over? Is there a way to actually wipe it (I already tried to remove the account and restart). Or this an error elsewhere?

Thanks!

shaneonabike commented 5 years ago

Wow and just like that upgraded from github, rebuilt, closed Pidgin and it is working HOOORAY!

jo-phish commented 5 years ago

What version of MatterMost and the pidgin plugin are you using? And what do I need to build for windows 10 from the repo?

shaneonabike commented 5 years ago

I'm not sure what version of Mattermost they are using unfortunately. Did you have the same issue? I would encourage you to just get the latest install (based on what the instructions are for windows). This will //most// likely resolve your issues as they had for me. Here;s hoping for you :)

jo-phish commented 5 years ago

We are currently on Mattermost version 5.4.0 and I install version 1.2 of the plugin from the repo. Problem is it appears to be using the api V3 endpoint which doesn't exist on the server. Version 5.4.0 appears to to MMUSER and/or the MMAUTHTOKEN in the request