claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Invalid API Request Parameters

Open hah23255 opened this issue 1 year ago • 3 comments

Bug Description error 400

Environment Info

  • Platform: linux
  • Terminal: xterm-256color
  • Version: 1.0.53
  • Feedback ID: ea6b3f81-fd11-4ba3-aed4-78d432dab566

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-18T03:33:01.347Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-18T03:39:44.723Z"},{"error":"Error: Request was aborted.\n    at k$.makeRequest (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1197:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-18T03:47:42.664Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at sF (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:1184)\n    at file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:912\n    at Array.map (<anonymous>)\n    at rF (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1354:903)\n    at We2 (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n    at QN (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)\n    at dS (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at uS (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at nL (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at qN (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-18T04:00:53.607Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.89: all messages must have non-empty content except for the optional final assistant message\"}}\n    at eQ.generate (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1180:6428)\n    at k$.makeStatusError (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1197:2101)\n    at k$.makeRequest (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1197:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async aB1.showErrors (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2594:14107)\n    at async aB1 (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2140:1658)\n    at async qBB (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2594:13956)\n    at async file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2594:9065\n    at async DIA (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2594:1626)\n    at async Yp (file:///data/data/com.termux/files/home/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2594:9035)","timestamp":"2025-07-18T04:04:2

Note: Error logs were truncated.

hah23255 avatar Jul 18 '25 04:07 hah23255

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/4227
  2. https://github.com/anthropics/claude-code/issues/3585
  3. https://github.com/anthropics/claude-code/issues/1097

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 16 '25 04:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #4227.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 20 '25 09:08 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 28 '25 14:08 github-actions[bot]