Skip to content

Pass a string 422 detail through to SandboxValidationError - #13

Merged
czpython merged 1 commit into
mainfrom
claude/sdk-422-string-detail-997a1c
Oct 22, 2026
Merged

czpython merged 1 commit into
mainfrom
claude/sdk-422-string-detail-997a1c

Conversation

@czpython

Copy link
Copy Markdown
Owner

Drukbox now answers POST /hosts with a 422 whose detail is the issuer's own sentence when it refuses to issue a secret, alongside FastAPI's list of error dicts for a malformed payload. The 422 branch of SandboxAPI._request joined the list's messages and crashed with an AttributeError on a string, so the caller saw a crash instead of a SandboxValidationError. It now joins a list as before and passes a string through verbatim.

@czpython
czpython merged commit c384f8f into main Oct 22, 2026
1 check passed
@czpython czpython mentioned this pull request Oct 22, 2026
@czpython
czpython deleted the claude/sdk-422-string-detail-997a1c branch October 22, 2026 15:32
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