go-ethereum/rpc/testdata
Nicholas 610cf02c4a
rpc: improve error codes for internal server errors (#25678)
This changes the error code returned by the RPC server in certain situations:

- handler panic: code -32603
- result marshaling error: code -32603
- attempt to subscribe via HTTP: code -32001

In all of the above cases, the server previously returned the default error
code -32000.

Co-authored-by: Nicholas Zhao <nicholas.zhao@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-09 14:03:23 +02:00
..
internal-error.js rpc: improve error codes for internal server errors (#25678) 2022-09-09 14:03:23 +02:00
invalid-badid.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
invalid-badversion.js rpc: check that "version" is "2.0" in request objects (#25570) 2022-09-02 17:47:29 +02:00
invalid-batch.js rpc: fix issue with null JSON-RPC messages (#21497) 2020-08-28 16:27:58 +02:00
invalid-idonly.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
invalid-nonobj.js rpc: fix issue with null JSON-RPC messages (#21497) 2020-08-28 16:27:58 +02:00
invalid-syntax.json rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-batch.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-echo.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-namedparam.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-noargsrets.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-nomethod.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-noparam.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
reqresp-paramsnull.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
revcall.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
revcall2.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00
subscription.js rpc: implement full bi-directional communication (#18471) 2019-02-04 13:47:34 +01:00