[Bug] Anthropic API Error: text content blocks must be non-empty when sending image-only messages
Resolved 💬 2 comments Opened May 25, 2026 by merlin-1999 Closed Jun 26, 2026
Bug Description
i send image only without text then i get message "API Error: 400 messages: text content blocks must be non-empty". i'm trying restart session but it not work. i found error message API Error 400 messages every times.
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.139
- Feedback ID: 2279c75a-e0d5-403f-af2a-2225f1a42d3b
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011CbNoZ5uFWPN3jKALP4QBd\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:59486)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-25T06:20:33.065Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗