[Bug] Anthropic API Error: Invalid JSON in request body - high surrogate issue
Resolved 💬 3 comments Opened Apr 19, 2026 by JGastonMurua Closed Apr 23, 2026
Bug Description
❯ /caveman
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON: invalid high surrogate in string: line 1 column 2504196 (char
2504195)"},"request_id":"req_011CaDtWdkQLisZsBPYpZ1s4"}
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.112
- Feedback ID: 6f9712a0-aa74-4f0a-b40b-f5ad1a9d1e30
Errors
[{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaCoYWsdXiedp5Mx3kCTq\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:20:01.282Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CaCosBWLafCgLwH1gp3K5\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52678)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:24:14.514Z"},{"error":"McpToolCallError: ### Error\nError: File access denied: D:\\hero-viewport.png is outside allowed roots. Allowed roots: D:\\.playwright-mcp, D:\\\n at pj_ (B:/~BUN/root/src/entrypoints/cli.js:4805:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T17:04:17.589Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CaDsBvqum6Y5QZXnG4uJR\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52714)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T21:48:25.727Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T21:59:13.313Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: invalid high surrogate in string: line 1 column 2504196 (char 2504195)\"},\"request_id\":\"req_011CaDtM7NYYuP78QNofkvFp\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52456)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T22:03:37.083Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: invalid high surrogate in string: line 1 column 2504196 (char 2504195)\"},\"request_id\":\"req_011CaDtQb6zeYhvnxLJ3JCaU\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52456)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T22:04:24.269Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: invalid high surrogate in string: line 1 column 2504196 (char 2504195)\"},\"request_id\":\"req_011CaDtVWwrD26hrYqzXeLy4\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52456)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T22:05:31.149Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: invalid high surrogate in string: line 1 column 2504196 (char 2504195)\"},\"request_id\":\"req_011CaDtWdkQLisZsBPYpZ1s4\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:52456)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T22:05:46.285Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗