What should the error code and the value of "id" become in case an empty ("") request is received

46 views
Skip to first unread message

Dave Hoogendoorn

unread,
Oct 16, 2019, 11:41:13 AM10/16/19
to JSON-RPC
Hi,

What should the error code and the value of "id" become in case an empty ("") request is received?

Happy to receive any thoughts.

Thanks,

Dave


Nathan Fischer

unread,
Oct 16, 2019, 12:46:47 PM10/16/19
to JSON-RPC
The id must be null and the error code should be -32700

If there was an error in detecting the id in the Request object (e.g. Parse error/Invalid Request), it MUST be Null.

-32700
 Parse error  
Invalid JSON was received by the server.
An error occurred on the server while parsing the JSON text.
 

Dave Hoogendoorn

unread,
Oct 17, 2019, 6:03:19 PM10/17/19
to JSON-RPC
Thanks Nathan

Op woensdag 16 oktober 2019 18:46:47 UTC+2 schreef Nathan Fischer:
Reply all
Reply to author
Forward
0 new messages