[Bug] Anthropic API Error: Invalid JSON Request Body Parsing
Resolved 💬 3 comments Opened Aug 25, 2025 by SannierAlban Closed Aug 28, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON: no
low surrogate in string: line 1 column 64132 (char 64131)"},"request_id":"req_011CSU92frfW2XBMiSyXMuGh"}\
\
What every i send, i have this error message
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.90
- Feedback ID: 12f3870f-a92a-4b7c-a723-a476f1fb4f07
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: no low surrogate in string: line 1 column 64132 (char 64131)\"},\"request_id\":\"req_011CSU8mQLbiR4wyqSwAnH5P\"}\n at b4.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at HP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at HP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async qZ1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async qZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async Ee (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)","timestamp":"2025-08-25T08:45:18.997Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: no low surrogate in string: line 1 column 64132 (char 64131)\"},\"request_id\":\"req_011CSU8xpAd4K6Y59ZUa3r7m\"}\n at b4.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at HP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at HP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async qZ1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async qZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async Ee (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)","timestamp":"2025-08-25T08:47:53.787Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: no low surrogate in string: line 1 column 64132 (char 64131)\"},\"request_id\":\"req_011CSU92frfW2XBMiSyXMuGh\"}\n at b4.generate (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at HP.makeStatusError (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at HP.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async qZ1.showErrors (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async qZ1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async Ee (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)","timestamp":"2025-08-25T08:48:46.325Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗