Invalid JSON Request: Malformed Surrogate Character in API Payload

Resolved 💬 4 comments Opened Aug 16, 2025 by jinyuanlu Closed Jan 6, 2026

Bug Description

continue

⎿ 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 144565 (char 144564)"}}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.77
  • Feedback ID: c4db33a6-c2b3-4e5d-be09-2eb7abd5f64f

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at MX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:912\n    at Array.map (<anonymous>)\n    at YW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:903)\n    at pjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2307:5231)\n    at xR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-16T04:57:04.592Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at MX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:912\n    at Array.map (<anonymous>)\n    at YW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:903)\n    at pjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2307:5231)\n    at xR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-16T04:57:04.593Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at MX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:912\n    at Array.map (<anonymous>)\n    at YW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:903)\n    at pjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2307:5231)\n    at xR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-16T04:57:04.663Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at MX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:912\n    at Array.map (<anonymous>)\n    at YW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:903)\n    at pjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2307:5231)\n    at xR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-16T04:57:04.690Z"},{"error":"Error: Request was aborted.\n    at QS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:953:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-16T05:05:14.853Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at MX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1685:1184)\n    at file:///opt/homebrew

Note: Error logs were truncated.

View original on GitHub ↗

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