github pavlov99/json-rpc 1.15.3

one hour ago

Bug-fix release for the 1.15.x line (Python 2.7, 3.6–3.14, PyPy).

pip install -U json-rpc==1.15.3

Fixes

Issue PR Change
#198 #199 A result containing NaN, Infinity or -Infinity gets -32603 Internal error. It used to be sent as NaN / Infinity, which isn't valid JSON: strict JSON clients (JavaScript, Go, Rust, ...) couldn't parse the response, or the whole batch it was in. This also applies to the Django and Flask backends.
#191 #192 A JSON-RPC 1.0 request whose params isn't an array (null, a string, an object) or whose method isn't a string gets -32600 Invalid Request instead of raising ValueError (HTTP 500 in the backends).
#196 The documentation builds on Read the Docs again.

Both fixes turn what used to be an HTTP 500 or invalid JSON into a valid JSON-RPC error response; nothing else changes.

What's next: json-rpc 2.0 is in development on master (Python ≥ 3.10); see the 2.0 documentation and the roadmap in #155. 1.15.x keeps getting bug fixes on the 1.x branch.

Full changelog: 1.15.2...1.15.3

Don't miss a new json-rpc release

NewReleases is sending notifications on new releases.