Skip to content

0.158.1: a body the client cannot send raises at once - #76

Merged
tmoosting merged 1 commit into
mainfrom
send-own-errors
Nov 27, 2026
Merged

tmoosting merged 1 commit into
mainfrom
send-own-errors

Conversation

@tmoosting

Copy link
Copy Markdown
Member

A body the client cannot send (a value JSON cannot hold, a body carrying world) was built inside the retry loop: its TypeError or ValueError was retried five times with waits, then raised as ConnectionError: gave up after 5 retries. Reached from patch_world, bulk and call. The request is now built once before the first try; only the transport's own exceptions are retried. The Transport protocol documents that a deliberate refusal raises a BaseException. The new test fails on 0.158.0's send loop. Gates in AGENTS.md order all exit 0 (2502 passed); the wire and live line, 27 passed.

🤖 Generated with Claude Code

…name

A value JSON cannot hold, or a body carrying world, was built inside the
retry loop, so its TypeError or ValueError was read as no response: retried
five times with the policy's waits, then raised as ConnectionError "gave up
after 5 retries". The request is now built once before the first try, and
only the transport's own exceptions are retried. The Transport protocol says
so, and that a transport refusing a request on purpose raises a
BaseException that is not an Exception. Watched failing on 0.158.0's send
loop; a wrapper transport's refusal is pinned by a second test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit 35d6f7d into main Nov 27, 2026
11 checks passed

This branch was previously deployed

1 inactive deployment
pypi — 35d6f7d4 Deployed Nov 27, 2026 by tmoosting via publish #256
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