RPC error -32600: Invalid request

Last updated:

At a glance

Error details
PropertyValue
Code-32600
MessageInvalid request
Categoryjsonrpc

Cause

The JSON sent is not a valid JSON-RPC 2.0 Request object — e.g. missing jsonrpc/method, wrong types, or a malformed batch element.

Solution

  1. Include "jsonrpc": "2.0", a string method, and an id.
  2. Ensure params is an array or object.
  3. Validate each element of a batch independently.

Example

{
  "id": null,
  "error": {
    "code": -32600,
    "message": "Invalid request"
  },
  "jsonrpc": "2.0"
}

FAQ

Why does "Invalid request" happen?
The JSON sent is not a valid JSON-RPC 2.0 Request object — e.g. missing jsonrpc/method, wrong types, or a malformed batch element.
How do I fix "Invalid request"?
Include "jsonrpc": "2.0", a string method, and an id. Ensure params is an array or object. Validate each element of a batch independently.