[Bug Report] invalid_request_error","message":"messages: text content blocks must contain non-whitespace text"
Resolved 💬 5 comments Opened Feb 5, 2026 by appeltje-c Closed Mar 5, 2026
Bug Description
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.31
- Feedback ID: 4dcd8d60-d9b9-4b3b-aff8-bce8d3160f22
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must contain non-whitespace text\"},\"request_id\":\"req_011CXpyPEVHbaFgiLoZrqozJ\"}\n at g4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:405:8663)\n at _C.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:422:2195)\n at _C.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:422:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-02-05T13:07:03.505Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗