Skip to content

Renew a rejected JSON web token for graph queries and subscriptions - #108

Merged
LLipter merged 1 commit into
masterfrom
rs-renew-jwt-on-graph-unauthorized
Nov 26, 2026
Merged

LLipter merged 1 commit into
masterfrom
rs-renew-jwt-on-graph-unauthorized

Conversation

@rschlaikjer

Copy link
Copy Markdown
Contributor

The graph API rejects a stale token with an unauthorized error in a 200 response, and the subscription websocket closes with 4401, so the existing 401 retry never renewed it. After an AGV cluster failover every graph query and subscription kept failing until the process restarted.

Drop the rejected token, including the session's jwttoken cookie that webstack reads ahead of basic auth, and retry once with basic auth.

The graph API rejects a stale token with an `unauthorized` error in a 200
response, and the subscription websocket closes with 4401, so the existing
401 retry never renewed it. After an AGV cluster failover every graph query
and subscription kept failing until the process restarted.

Drop the rejected token, including the session's jwttoken cookie that
webstack reads ahead of basic auth, and retry once with basic auth.
@rschlaikjer
rschlaikjer requested a review from LLipter November 26, 2026 01:50
@LLipter
LLipter merged commit d015576 into master Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants