go-ethereum/rpc/testdata
Daniel Liu 02eb1d5375
rpc: improve error codes for internal server errors #25678 (#974)
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 <nicholas.zhaoyu@gmail.com>
Co-authored-by: Nicholas Zhao <nicholas.zhao@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-04-24 19:03:29 +08:00
..
internal-error.js rpc: improve error codes for internal server errors #25678 (#974) 2025-04-24 19:03:29 +08:00
invalid-badid.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-badversion.js rpc: check that version is 2.0 in request objects #25570 (#973) 2025-04-24 19:02:33 +08:00
invalid-batch.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-idonly.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-nonobj.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-syntax.json upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-batch.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-echo.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-namedparam.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-noargsrets.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-nomethod.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-noparam.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-paramsnull.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
revcall.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
revcall2.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
subscription.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00