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
Reserved for implementation-defined server-errors.
One can argue that invalid input / missing or invalid parameters an example of implementation-defined server-error.
Missing params can be seen as server error (not application error), as server may not be able to execute application without params.
Copy from ethereum/go-ethereum#20050
Let's just fix the specific issue, use of -32000. Of course there are other problems with the current json rpc errors, but none as severe as this one.
System information
Geth version: all
OS & Version: all
Expected behaviour
Go ethereum returns errors whose code is not in the range -32768 to -32000 inclusive.
this means that the error defined as
Should have a
code
that is 1 greater than the current greatest error code, so -32005Actual behaviour
As described by eip-1474, -32000 is in use
Steps to reproduce the behaviour
call any json rpc method without parameters
The text was updated successfully, but these errors were encountered: