Invalid API Request: Empty Message Content Detected
Resolved 💬 1 comment Opened Jul 21, 2025 by relaxis Closed Jul 25, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17: all messages must
have non-empty content except for the optional final assistant message"}}
Environment Info
- Platform: linux
- Terminal: konsole
- Version: 1.0.56
- Feedback ID:
Errors
[{"error":"Error: Command failed: ps aux | grep -E \"code|cursor|windsurf|idea|pycharm|webstorm|phpstorm|rubymine|clion|goland|rider|datagrip|dataspell|aqua|gateway|fleet|android-studio\" | grep -v grep\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:883:11)\n at execSync (node:child_process:955:15)\n at A7 (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:797:5848)\n at fn (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1278:2366)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2726:9388\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2479:7034\n at async Promise.all (index 12)","timestamp":"2025-07-21T09:54:02.547Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-21T09:54:02.737Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at IW (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:1184)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:912\n at Array.map (<anonymous>)\n at DW (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:903)\n at THB (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2334:7353)\n at aq (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n at Fy (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n at Gy (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n at IO (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n at VN (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-21T09:54:48.680Z"},{"error":"Error: Cannot create a string longer than 0x1fffffe8 characters\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at bD (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:688:376)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2171:994\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-21T09:58:17.268Z"},{"error":"Error: Cannot create a string longer than 0x1fffffe8 characters\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at bD (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:688:376)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2171:994\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-21T09:58:30.094Z"},{"error":"Error: Cannot create a string longer than 0x1fffffe8 characters\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at bD (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:688:376)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2171:994\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-21T09:59:05.359Z"},{"error":"Error: Cannot create a string longer than 0x1fffffe8 characters\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at bD (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:688:376)\n at file:///home/alex
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗