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
If I understand the JSON-RPC 2.0 specification correctly, when a request is missing the mandatory method field, the response should indicate an invalid request error as shown below.
I have the same understand with you.
As you show, if a request has the correct 'id' item, the response will also has a correct 'id' item, no matter if the request has a 'method' item.
But if I use the mjson correctly, now the response will not response with the correct request 'id' item.
Request:
{"jsonrpc": "2.0", "params": [42, 23], "id": 1}
now Response:
A request like this, {"jsonrpc": "2.0", "params": [42, 23], "id": 1}.
Should we send back a error response with id?
The text was updated successfully, but these errors were encountered: