Using the Web3 API

Errors

Troubleshoot RPC error codes returned by 1RPC.

Request limit

There is a size limit for each RPC request (default 2 MB).

  • Error code: -32600
  • Error message: JSON RPC Request is too large

Example:

{"jsonrpc": "2.0", "error": {"code": -32600, "message": "JSON RPC Request is too large"}, "id": 1}

Response limit

There is a response size limit for each RPC request. Calls like eth_getLogs can be reduced by refining the request (for example, a smaller block range).

  • Error code: -32000
  • Error message: response size should not greater than 2097152 bytes

Example:

{"jsonrpc": "2.0", "error": {"code": -32000, "message": "response size should not greater than 2097152 bytes"}, "id": 1}

Usage quota

Rule ID: 001

Default daily usage quota per user: 200. Once the rate limit is reached, requests are blocked until 00:00 UTC the following day.

  • Error code: -32001
  • Error message: You've reached the usage limit for your current plan. To continue with higher limits and uninterrupted access, please upgrade here: https://www.1rpc.io/#pricing

Example:

{"jsonrpc": "2.0", "error": {"code": -32001, "message": "You've reached the usage limit for your current plan. To continue with higher limits and uninterrupted access, please upgrade here: https://www.1rpc.io/#pricing"}, "id": 1}

On this page