Errors and troubleshooting

Connection issues

CodeError MessageSolution
401Missing token-idThe token segment of the URL is empty, malformed, or has stray characters (including a trailing space, or a missing token entirely). Copy the endpoint URL from your GetBlock Dashboard exactly as issued.
401Unknown tokenThe token isn't recognized on this host. This covers several causes: the token is simply wrong (typo), it was rolled or deleted, it was never issued, or — since access tokens are region-bound — it's a completely valid token, just issued for a different region than the host you're calling (eu-central-1, us-east-1, or ap-southeast-1). If you're sure the token is current and correct, check it matches the region shown for that endpoint in your Dashboard; if it might have been rolled, generate a fresh one.
— (no HTTP response)Could not resolve host / DNS lookup failureYour request never reached GetBlock. Check the host segment of the URL is spelled correctly, e.g. <service>.<region>.getblock.io, and matches one of the regions shown in your Dashboard.
429Too many requestsCheck your GetBlock account for usage limits. Upgrade your plan if necessary

JSON-RPC errors

CodeError messageSolution
-32600Invalid Request ("method must be POST")JSON-RPC requests must be sent as POST with a JSON body. This is what you'll see if you open the endpoint URL directly in a browser or send a GET request.
-32601The method does not exist/is not availableVerify the method name (eth_blockNumber, eth_getBalance, etc.) against the blockchain's JSON-RPC specifications.
-32602Invalid argumentEnsure the parameters in the params array match the expected format for the method.
-32700Parse error (invalid JSON format)Double-check your JSON syntax. Ensure your request is properly formatted.