Skip to content

fix: Find out again which API the server offers once it answers a path of the v2 API with 404 or 405, for example after a rollback. - #426

Merged
goloroden merged 3 commits into
mainfrom
fix/forget-api-after-v2-404-405
Oct 19, 2026
Merged

goloroden merged 3 commits into
mainfrom
fix/forget-api-after-v2-404-405

Conversation

@goloroden

Copy link
Copy Markdown
Member

When a server is rolled back to a version without the v2 API, for example from 1.3 to 1.2, it answers every path of the v2 API with 404 or 405. Until now, the client kept sending v2 requests, and every one failed until the client was recreated.

Now, any answer with 404 or 405 to a request through the v2 API (single answers, streams, writes, and schema registration) makes the client forget which API the server offers, so the next request probes again. The request itself fails as before, and a write still ends with an OutcomeUnknownError. A 404 through the v1 API and an error item with status 200 never forget. Only the transport that the client still keeps can make it forget, so a late 404 neither disturbs a probe in flight nor discards the answer of a newer one.

The README section "Talking to Servers With and Without the v2 API" gets one sentence about this.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QykegdHe7vhHMBN3kWxgfH

…h of the v2 API with 404 or 405, for example after a rollback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QykegdHe7vhHMBN3kWxgfH
@goloroden
goloroden requested a review from a team as a code owner October 19, 2026 14:36
@goloroden goloroden self-assigned this Oct 19, 2026
goloroden and others added 2 commits October 19, 2026 16:38
… v2 API, while observing events, and once a new probe finds the v2 API again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QykegdHe7vhHMBN3kWxgfH
@goloroden
goloroden merged commit efe2fa6 into main Oct 19, 2026
3 checks passed
@goloroden
goloroden deleted the fix/forget-api-after-v2-404-405 branch October 19, 2026 14:56
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.

1 participant