TriportRPC

Parse error (-32700)

Last updated:

At a glance

Error details
PropertyValue
Code-32700
MessageParse error
Categoryjsonrpc

Cause

The server could not parse the request body as JSON — invalid JSON, wrong content type, or a truncated/empty payload.

Solution

  1. Send well-formed JSON with `Content-Type: application/json`.
  2. Do not send an empty body.
  3. 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.