Invalid API Request: Empty Message Content in Todo List Generation
Resolved 💬 4 comments Opened Jul 19, 2025 by relaxis Closed Jan 5, 2026
Bug Description
single todo lists causing API ERROR: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.87: all messages must
have non-empty content except for the optional final assistant message"}}
Environment Info
- Platform: linux
- Terminal: konsole
- Version: 1.0.55
- 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 q5 (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:727:4693)\n at tc (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2366)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2654:9369\n at async file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2409:6947\n at async Promise.all (index 12)\n at async XZ4 (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2409:6906)","timestamp":"2025-07-18T14:32:12.157Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.53: all messages must have non-empty content except for the optional final assistant message\"}}\n at B6.generate (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1179:6425)\n at p$.makeStatusError (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:2101)\n at p$.makeRequest (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async P9B.F91.showErrors (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:14125)\n at async F91 (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:1696)\n at async P9B (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:13976)\n at async file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:9065\n at async hIA (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:1626)\n at async qp (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:9035)","timestamp":"2025-07-18T14:41:39.494Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.79: all messages must have non-empty content except for the optional final assistant message\"}}\n at B6.generate (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1179:6425)\n at p$.makeStatusError (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:2101)\n at p$.makeRequest (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async P9B.F91.showErrors (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:14125)\n at async F91 (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:1696)\n at async P9B (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:13976)\n at async file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:9065\n at async hIA (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:1626)\n at async qp (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2598:9035)","timestamp":"2025-07-18T14:57:19.745Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at eF (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:1184)\n at file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:912\n at Array.map (<anonymous>)\n at AY (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:903)\n at K1B (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:7400)\n at XN (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19857)\n at eS (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42838)\n at oS (file:///home/alexis/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38361)\n at
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗