fix(auth): widen callback-relay registration budget and add transient retry by andomeder · Pull Request #55 · Noumena-Network/code · GitHub
Skip to content

fix(auth): widen callback-relay registration budget and add transient retry - #55

Closed
andomeder wants to merge 1 commit into
Noumena-Network:mainfrom
andomeder:fix/oauth-callback-relay-budget
Closed

fix(auth): widen callback-relay registration budget and add transient retry#55
andomeder wants to merge 1 commit into
Noumena-Network:mainfrom
andomeder:fix/oauth-callback-relay-budget

Conversation

@andomeder

Copy link
Copy Markdown
Contributor

The callback-relay registration POST ran with a 1000ms axios timeout,
shorter than a cold DNS+TLS handshake on a fresh process. After 3 attempts
a user saw "timeout of 1000ms exceeded" and pressed Enter repeatedly until
the socket warmed up.

Raise the budget to 5000ms and replace the linear 150*attempt loop with
withTransientRetry: 3 attempts, 200ms base, exponential backoff plus jitter.
The wrapper only retries transient errors (network failures, 5xx, 429) so
4xx responses fail fast.

Validation: bun test src/services/oauthServiceE2E.test.ts src/services/oauth/client.test.ts 18/18.

… retry

The 1s registration timeout was shorter than a cold DNS+TLS handshake on a
fresh process, producing a "timeout of 1000ms exceeded" loop on /login.
Bumped to 5s and replaced the linear retry withTransientRetry (3 attempts,
200ms exponential + jitter, transient-only).
@xjdr-noumena

Copy link
Copy Markdown
Contributor

@xjdr-noumena

Copy link
Copy Markdown
Contributor

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