Invalid JSON Request: Malformed Low Surrogate in API Payload
Resolved 💬 3 comments Opened Jun 11, 2025 by bluet Closed Aug 22, 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 241834 (char 241833)"}}
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 1.0.18
- Feedback ID: 2322046a-7d17-48d9-8564-a0898e601c1d
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 241834 (char 241833)\"}}\n at g6.generate (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1343:12578)\n at ww.makeStatusError (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1358:2082)\n at ww.makeRequest (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1358:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Tw2.B11.showErrors (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:21041)\n at async B11 (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:12154)\n at async Tw2 (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:20887)\n at async file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:17052\n at async to1 (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:5102)\n at async nd (file:///home/bluet/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1685:17022)","timestamp":"2025-06-11T10:05:00.103Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗