Repository navigation
0.158.2: refuse a non-finite number or a body nested past 200 before sending - #77
Merged
Merged
Conversation
…used before sending json.dumps wrote the bare tokens NaN, Infinity and -Infinity, which are not JSON, and the server answered them with a 500. Any request body holding one now raises a ValueError that names the value and its place; nothing is sent, and the body is encoded with allow_nan=False after. A body nested more than 200 deep, counted as the folder readers count it, is refused the same way, by a walk with its own stack. A body with both is refused for its depth. The npm SDK refuses both in the same words (4.219.2). Watched failing on 0.158.1: each body was sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was previously deployed
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.
json.dumps wrote the bare tokens NaN, Infinity and -Infinity, which are not JSON, and the server answered them with a 500. Any request body holding one now raises a ValueError naming the value and its place, nothing is sent, and the body is encoded with allow_nan=False after. A body nested more than 200 deep (counted as the folder readers count it) is refused the same way, by a walk with its own stack. Watched failing on 0.158.1; three plants, each red alone; the staging write checks pass. The npm SDK refuses both in the same words (4.219.2): 3,000 random bodies through both, every refusal word for word the same.
🤖 Generated with Claude Code