[Bug] Anthropic API Error: Invalid JSON Request Body Parsing
Resolved 💬 3 comments Opened Aug 24, 2025 by ubercylon8 Closed Aug 28, 2025
Bug Description
during a regular chat and while executing the tasks, I got this messgae repeatedly:
⎿ 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 134323 (char
134322)"},"request_id":"req_011CSSm1Hk3tCb5cK7SNcQpT"}
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 1.0.89
- Feedback ID: 59418a41-d915-4b26-ba97-07d7ae90017b
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 134323 (char 134322)\"},\"request_id\":\"req_011CSSkNLbAkZQiyPByS1fgD\"}\n at b4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at HP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at HP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async NZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async NZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async $e (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)","timestamp":"2025-08-24T15:11:00.263Z"},{"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 134323 (char 134322)\"},\"request_id\":\"req_011CSSm1Hk3tCb5cK7SNcQpT\"}\n at b4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n at HP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at HP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async NZ1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27491)\n at async NZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:16486)\n at async qBB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:27321)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22275\n at async XD0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:3656)\n at async $e (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1898:22245)","timestamp":"2025-08-24T15:19:21.449Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗