RPC error -32600: Invalid request
Last updated:
At a glance
| Property | Value |
|---|---|
| Code | -32600 |
| Message | Invalid request |
| Category | jsonrpc |
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
- Include "jsonrpc": "2.0", a string method, and an id.
- Ensure params is an array or object.
- 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.