errors: add 80025 for exceeded max concurrent connections per token#347
Open
SimonWoolf wants to merge 1 commit into
Open
errors: add 80025 for exceeded max concurrent connections per token#347SimonWoolf wants to merge 1 commit into
SimonWoolf wants to merge 1 commit into
Conversation
The realtime platform enforces (or, in monitor mode, measures) a limit on the number of concurrent connections sharing a single auth token. There was no error code for this case; the existing nodejs implementation reused 80019, which actually means "client configured authentication provider request failed" — an unrelated, client-side auth error that SDKs may react to by retrying auth. Add a dedicated connection-range code so the rejection is described accurately. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
80025: "exceeded maximum concurrent connections permitted for this token".Why
The realtime platform measures (and can enforce) a limit on the number of concurrent connections sharing a single auth token. There was no dedicated error code for this case.
The existing nodejs implementation (
common/lib/security/authparams.ts) reuses80019for it — but80019actually means "client configured authentication provider request failed", an unrelated client-side auth error that SDKs may react to by retrying authentication. Surfacing it for a server-side concurrency limit is misleading.80025is the next free code in the contiguous connection-error block (800xx). Once this merges, the realtime repo will switch the nodejs check to80025and the in-progress Go frontdoor implementation (PUB-1503) will use it too.No
errorsHelp.jsonentry is added, as no FAQ article exists for this code yet.🤖 Generated with Claude Code