Skip to Content
Errors and troubleshooting

Errors and troubleshooting

First distinguish HTTP transport failures, Gateway-generated errors, and upstream application errors.

JSON-RPC errors

Except for HTTP-layer failures such as an unmatched Host or an oversized body, JSON-RPC errors normally use HTTP 200:

{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32004, "message": "No available Endpoint.", "data": {"type": "gateway_error"} } }
CodeMessageAction
-32700Parse error.Check JSON encoding and body completeness
-32600Invalid Request.Send one strict JSON-RPC 2.0 object; do not send a batch
-32001Authentication failed.Check the Key, Bearer format, Key state, and App state
-32002Gateway not found.Copy the target network Access Point again
-32003Gateway is disabled.Enable the App and target Gateway
-32004No available Endpoint.Check the Accelerator method and parameters; add a route Endpoint for reliable fallback
-32005Endpoint request failed.Check upstream connectivity, credentials, timeout, and retry policy
-32029Rate limit exceeded.Back off using Retry-After or retry_after_ms
-32603Internal error.Keep the request time, Host, and request ID and contact the platform operator

Upstream JSON-RPC errors keep upstream code and message values and should not be interpreted as Gateway codes.

Troubleshoot -32004

This error does not only mean that a route is empty. It can also mean:

  • the request is outside the Accelerator method set;
  • the method is eligible but its parameters do not match the cache policy;
  • no cache entry exists, or it expired, for that chain, network, height, slot, or block hash;
  • Accelerator has no usable result and the route has no Endpoint for fallback.

Do not assume that repeating the request will produce a hit. Check the method and parameters first. Configure an Endpoint for reliable coverage, more methods, or writes.

TRON HTTP API status codes

HTTPMeaningAction
400Invalid request or Content-LengthCheck request formatting
401Authentication failedCheck the App Key and Bearer/Path Key placement
404Host, Gateway, or path not foundCheck the network Host and allowed path family
405Method not allowedUse GET or POST only
408Body-read timeoutCheck client upload and network behavior
413Request body too largeReduce the request or ask the operator for the deployed limit
429Rate limitedBack off using Retry-After
502Endpoint attempts failedInspect upstreams and Route configuration
503Gateway disabled or no available EndpointEnable the Gateway and configure a matching HTTP API Endpoint
500Internal Gateway errorPreserve request context and contact the operator

Gateway errors for /wallet/* and /walletsolidity/* use:

{"Error":"No available Endpoint."}

Gateway errors for the /v1/* path family use:

{"Success":false,"Error":"No available Endpoint.","StatusCode":503}

Upstream status codes and bodies are preserved, so the same HTTP status can originate upstream. Use the response body, request time, and Endpoint observations to distinguish it.

Troubleshooting sequence

  1. Copy the Access Point again; do not guess the Host.
  2. Test the simplest read method from the Accelerator table to validate the Key and Gateway.
  3. For -32004, check the method, parameters, and whether reliable fallback is required.
  4. When using an Endpoint, confirm that the App, Gateway, and Endpoint are enabled.
  5. Confirm that the Route has at least one Endpoint with an exact chain, network, and protocol match.
  6. Run the Endpoint health check separately to validate the upstream URL and provider credentials.
  7. Inspect Retry-After, the Gateway error code, and the upstream error message.
  8. If escalation is required, provide UTC time, request Host, JSON-RPC id, method, and complete error. Never provide the App API Key.
Last updated on