mautrix / slack

A Matrix-Slack puppeting bridge
GNU Affero General Public License v3.0
68 stars 19 forks source link

Sessions authenticated with login-token silently fail after a few hours/days #62

Open michaelphagen opened 2 months ago

michaelphagen commented 2 months ago

I've been finding that my bridge is down about once per week, despite the bridge bot reporting a normal connection. The main error that I see is below:

2024-09-30T17:33:23.992Z ERR Got RTM error error=invalid_auth action="handle slack event" error_code=401 event_type=*slack.RTMErrorEvent login_id=T02CWCDNCJ2-U03F5Q9KWER user_mxid=@username:matrix.mydomain.tld 2024-09-30T17:33:28.995Z WRN Disconnected from Slack error=signaled action="handle slack event" event_type=*slack.DisconnectedEvent intentional=false login_id=T02CWCDNCJ2-U03F5Q9KWER user_mxid=@username:matrix.mydomain.tld

This did not occur before the bridge changed to have a new config format. If I roll back to that version of the bridge, it works normally.

hooger commented 1 month ago

Same experience, mostly the same error. My log looks like this:

2024-10-08T16:32:28.214Z WRN Disconnected from Slack error=signaled action="handle slack event" event_type=*slack.DisconnectedEvent intentional=false login_id=<ID> user_mxid=<MXID>

these events are repeated about every 10 seconds.