Invalid JSON Request: Anthropic API Parsing Error

Resolved 💬 3 comments Opened Jul 19, 2025 by sachafaust Closed Aug 19, 2025

Bug Description
cannot use claude anymore and lost conversation. " ⎿ 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 199263 (char 199262)"}}"

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.53
  • Feedback ID: d105a693-8e90-4b5a-beea-c8bad584d638

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-19T14:19:51.004Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-19T14:19:51.049Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-19T14:20:04.111Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-19T14:20:04.148Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/

Note: Error logs were truncated.

View original on GitHub ↗

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