Parse error (-32700)
Last updated:
At a glance
| Property | Value |
|---|---|
| Code | -32700 |
| Message | Parse error |
| Category | jsonrpc |
Cause
The server could not parse the request body as JSON — invalid JSON, wrong content type, or a truncated/empty payload.
Solution
- Send well-formed JSON with `Content-Type: application/json`.
- Do not send an empty body.
- Ensure the payload is not truncated by an intermediary.
Example
{
"id": null,
"error": {
"code": -32700,
"message": "Parse error"
},
"jsonrpc": "2.0"
}FAQ
- Why does "Parse error" happen?
- The server could not parse the request body as JSON — invalid JSON, wrong content type, or a truncated/empty payload.
- How do I fix "Parse error"?
- Send well-formed JSON with `Content-Type: application/json`. Do not send an empty body. Ensure the payload is not truncated by an intermediary.
- What is RPC error -32700?
- -32700 means: Parse error. The server could not parse the request body as JSON — invalid JSON, wrong content type, or a truncated/empty payload.