Invalid JSON Request: High Surrogate Error in API Payload
Resolved 💬 3 comments Opened Aug 20, 2025 by pdwhoward Closed Aug 24, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_requ
est_error","message":"The request body is not valid JSON:
invalid high surrogate in string: line 1 column 60547 (char
60546)"},"request_id":"req_011CSKUTeNzh1kKPatNkVbY7"}
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 1.0.85
- Feedback ID: 1d04e054-4b44-4095-8ace-5cf63fa9b67f
Errors
[{"error":"SyntaxError: Unexpected token ']', ...\"tch\",\n ]\n }\n}\" is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n at Q (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n at x02 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:30750)\n at fF4 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32600)\n at OL (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32984)\n at y2 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32916)\n at PN2 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:777:3496)\n at file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1981:290\n at Q (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)","timestamp":"2025-08-20T18:57:09.351Z"},{"error":"Error: Invalid settings\n at xF4 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:30073)\n at x02 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:30795)\n at fF4 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32600)\n at OL (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32984)\n at y2 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:32916)\n at PN2 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:777:3496)\n at file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1981:290\n at Q (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n at UT8 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:3497:10173)\n at file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:3540:1373","timestamp":"2025-08-20T18:57:09.357Z"},{"error":"Error: Invalid settings\n at xF4 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:30073)\n at x02 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:30795)\n at bY (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:757:31567)\n at ak (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:739:1521)\n at Vq1 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:739:1484)\n at mS2 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:848:12199)\n at GP0.<anonymous> (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:3510:116)\n at GP0.B [as _actionHandler] (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:667:528)\n at file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:671:3127\n at GP0._chainOrCall (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:671:1694)","timestamp":"2025-08-20T18:57:09.529Z"},{"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 60547 (char 60546)\"},\"request_id\":\"req_011CSKUTeNzh1kKPatNkVbY7\"}\n at j4.generate (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:932:2412)\n at bP.makeStatusError (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:949:2101)\n at bP.makeRequest (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:949:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async UD1.showErrors (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1904:27238)\n at async UD1 (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1904:16345)\n at async v9B (file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-ai/claude-code/cli.js:1904:27089)\n at async file:///C:/Users/pdwho/.npm-global/node_modules/@anthropic-
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗