Skip to content

fix(client): prevent crash on non-dict JSON-RPC error responses#62

Merged
fguillot merged 1 commit intomainfrom
fix/safe-error-response-parsing
Mar 25, 2026
Merged

fix(client): prevent crash on non-dict JSON-RPC error responses#62
fguillot merged 1 commit intomainfrom
fix/safe-error-response-parsing

Conversation

@fguillot
Copy link
Member

Chained .get() calls on the error field caused an AttributeError when the server returned a non-dict error value (e.g. a plain string or null).

Chained .get() calls on the error field caused an AttributeError
when the server returned a non-dict error value (e.g. a plain string
or null).
@fguillot fguillot merged commit 11bbfa8 into main Mar 25, 2026
11 checks passed
@fguillot fguillot deleted the fix/safe-error-response-parsing branch March 25, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant