docs
docs copied to clipboard
[DOCS] Add troubleshooting for RPC request timeouts
Brief Description of the Docs Request
Sometimes RPC trace calls will timeout, attaching a timeout to the param request gives the node sufficient time to trace the block. Relevant RPC methods:
-
debug_traceCall
-
debug_traceTransaction
-
debug_traceBlockByNumber
-
debug_traceBlockByHash
Description of the Documentation You'd Like
Adding a troubleshooting guide or callout for transactions that are timing out.
Links to Related Pages
Additional Context
Sample request timing out:
$ curl <rpc-endpoint> -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByNumber","params":["0xB607A4", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
> {"jsonrpc":"2.0","id":1,"result":[{"error":"execution timeout"}]}
Adding "timeout": 300s
to the params
gives the node sufficient time to trace the block.