You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON RPC does not accept a numeric id anymore and responds with Couldn't parse the RPC body. When id is given as a String or Null, the API call works. This behavior is new and was apparently introduced in a change within the past 12 hours.
Steps to Reproduce
curl -s -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"latestblockheight","params":[],"id":1}' localhost:3032
Output: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Couldn't parse the RPC body"},"id":null}
🐛 Bug Report
JSON RPC does not accept a numeric
id
anymore and responds withCouldn't parse the RPC body
. Whenid
is given as a String or Null, the API call works. This behavior is new and was apparently introduced in a change within the past 12 hours.Steps to Reproduce
curl -s -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"latestblockheight","params":[],"id":1}' localhost:3032
Output:
{"jsonrpc":"2.0","error":{"code":-32700,"message":"Couldn't parse the RPC body"},"id":null}
curl -s -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"latestblockheight","params":[],"id":"1"}' localhost:3032
Output:
{"jsonrpc":"2.0","result":6864,"id":"1"}
Expected Behavior
Support
id
as String, Number and Null, as in the JSON RPC specsYour Environment
snarkOS: 2.0.0 (c762a1d)
Rust: 1.56.1
OS: Ubuntu Linux 20.04
The text was updated successfully, but these errors were encountered: