Skip to content

Conversation

drdaeman
Copy link

I've needed to talk to legacy JSON-RPC 1.0 server and found that there's no library on PyPi that could readily do it.

Here are quick fixes, which I hope could be merged. Error handling modifications should not affect working with any compliant 1.1+ server, but only more eagerly accept possible 1.0 oddities.

Thanks.

This should support any types of error responses, including:

- `{..., "error": {"code": -42, "message": "spam"}}`,
- `{..., "error": {"reason": "spam"}}`,
- `{..., "error": {"what_happened": "spam"}}`,
- or even `{..., "error": "spam"}}`
@agronholm
Copy link

Is the author dead? No comments for 4 months?

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.

2 participants