Invalid JSON Parsing Error During API Request Compaction

Resolved 💬 3 comments Opened Aug 7, 2025 by oldeucryptoboi Closed Aug 15, 2025

Bug Description
⎿ Error: Error during compaction: Error: 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 285181 (char 285180)"}}

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.67
  • Feedback ID: 371e5314-56fd-41eb-ac69-e699bb60531e

Errors

[{"error":"Error: Request was aborted.\n    at l71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-07T05:07:31.431Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at CX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:912\n    at Array.map (<anonymous>)\n    at KX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:903)\n    at tvB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2626:7823)\n    at KR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at Mb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42848)\n    at Nb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38369)\n    at Bj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38297)\n    at _R (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38151)","timestamp":"2025-08-07T05:08:23.967Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: smithy\n    at CX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:912\n    at Array.map (<anonymous>)\n    at KX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:903)\n    at tvB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2626:7823)\n    at KR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at Mb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42848)\n    at Nb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38369)\n    at Bj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38297)\n    at _R (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38151)","timestamp":"2025-08-07T05:10:39.887Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at CX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:912\n    at Array.map (<anonymous>)\n    at KX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1576:903)\n    at tvB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2626:7823)\n    at KR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at Mb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42848)\n    at Nb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38369)\n    at Bj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38297)\n    at _R (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38151)","timestamp":"2025-08-07T05:10:39.926Z"},{"error":"Error: Request was aborted.\n    at l71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-07T05:32:16.789Z"},{"error":"Error: Request was aborted.\n    at l71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-07T05:34:38.636Z"},{"error":"Error: Request was aborted.\n    at l71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-07T05:35:30.690Z"},{"error":"Error: Request was aborted.\n    at l71._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:7955)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-08-07T05:36:16.990Z"},{"error":"Error: Language not supported

Note: Error logs were truncated.

View original on GitHub ↗

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