Skip to content

fix: retry an outdated VK Calls token - #31

Merged
luminescq merged 1 commit into
luminescq:mainfrom
mrddt-tech:fix/vkcalls-outdated-token-retry
Oct 5, 2026
Merged

luminescq merged 1 commit into
luminescq:mainfrom
mrddt-tech:fix/vkcalls-outdated-token-retry

Conversation

@mrddt-tech

Copy link
Copy Markdown
Contributor

Problem

VK Calls can report error.webrtc.auth.anonym_token.outdated at the final join step even though the anonymous token was just issued. The previous flow then fell back to CAPTCHA handling.

Root cause

The complete VK Calls token chain is short-lived and its final step can receive a stale token response.

Implementation

Retry the complete VK Calls path once only when the structured failure is from step 5 and contains that outdated-token error. The retry wait observes context cancellation. All other failures, including non-retryable call errors, retain their existing handling.

Tests

cd core && go test ./...

Observed behavior

A fresh VK Calls chain can succeed after this transient final-step response with the same profile.

Trade-offs

There is at most one extra VK Calls chain, only for the narrowly identified transient error.

@mrddt-tech
mrddt-tech marked this pull request as ready for review September 7, 2026 08:14
@luminescq
luminescq merged commit d5cb8da into luminescq:main Oct 5, 2026
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