Sessions authenticated with login-token silently fail after a few hours/days
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- go
- Domain
- authentication, backend
Research direction
Start by reproducing the login-token authentication failure after several hours or days, then compare the current config behavior with the version before the config format change. Done means the bridge detects and handles expired authentication rather than silently remaining connected while Slack returns invalid_auth.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Go
- Stars
- 107
- Forks
- 31
- Avg merge
- 1d 38m
- Merged PRs (30d)
- 18
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mautrix/slack
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 28/100
mautrix/slack#27 · 2 comments · 2 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
google/go-containerregistry#2491 ·
Maintainers usually reply within 1 day
-
aiac enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
phase:v1 type:harness
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
scttfrdmn/burroughs#1181 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/ce-ci#28 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day