Invalid JSON: High Surrogate Error in API Request Body

Resolved 💬 3 comments Opened Jul 28, 2025 by kshivang Closed Aug 15, 2025

Bug Description
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 112831 (char 112830)"}}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.61
  • Feedback ID:

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at DX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at e_B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2525:7746)\n    at mM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at dv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at uv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at OS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at FR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-28T04:59:23.014Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:2172\n    at Array.map (<anonymous>)\n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:2143)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:2059\n    at Array.map (<anonymous>)\n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:2048)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at DX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)","timestamp":"2025-07-28T04:59:23.028Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at DX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at e_B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2525:7746)\n    at mM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at dv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at uv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at OS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at FR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-28T04:59:23.030Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at DX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at e_B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2525:7746)\n    at mM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at dv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at uv (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at OS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at FR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-28T04:59:23.031Z"},{"error":"AxiosError: Request failed with status code 403\n    at kq (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:676:1077)\n    at Unzip.Y0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:677:9955)\n    at Unzip.emit (node:events:519:35)\n    at Unzip.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at x21.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:679:2088)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at a

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗