Support talking to legacy JSON-RPC 1.0 servers #14

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

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.

drdaeman added some commits Mar 13, 2012

Less strict error response handling.
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"}}`

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