[Bug] Anthropic API Error: Invalid Request Parameters

Resolved 💬 3 comments Opened Aug 26, 2025 by PiLouZ Closed Aug 29, 2025

Bug Description
API Error: 400

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.92
  • Feedback ID: 5d9842e0-3f87-4eb2-bac3-28092d2023e8

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at DV (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:1184)\n    at file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:912\n    at Array.map (<anonymous>)\n    at BX (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:903)\n    at YgB (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:3167:9171)\n    at $z (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at Ic (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at eQ (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at _b (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at jz (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-08-26T07:00:47.929Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at DV (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:1184)\n    at file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:912\n    at Array.map (<anonymous>)\n    at BX (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:903)\n    at YgB (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:3167:9171)\n    at $z (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at Ic (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at eQ (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at _b (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at jz (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-08-26T07:01:53.171Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at DV (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:1184)\n    at file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:912\n    at Array.map (<anonymous>)\n    at BX (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1755:903)\n    at YgB (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:3167:9171)\n    at $z (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at Ic (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at eQ (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at _b (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at jz (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-08-26T07:02:09.699Z"},{"error":"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 277338 (char 277337)\"},\"request_id\":\"req_011CSVtizRzpf6kx3BDMyGMs\"}\n    at b4.generate (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n    at CP.makeStatusError (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at CP.makeRequest (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async YQB.yZ1.showErrors (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1898:27488)\n    at async yZ1 (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1898:16483)\n    at async YQB (file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1898:27318)\n    at async file:///Users/emg1/.npm/_npx/becf7b9e49303068/node_modules/@anthropic-ai/claude-code/cli.js:1898:22272\n    at async bz0 (file:///Use

Note: Error logs were truncated.

View original on GitHub ↗

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