[Bug] Anthropic API Error: text content blocks must be non-empty
Resolved 💬 3 comments Opened May 26, 2026 by CashQ Closed Jun 27, 2026
Bug Description
⎿ API Error: 400 messages: text content blocks must be non-empty
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.150
- Feedback ID: 63921732-cfdd-4cb8-a157-73cb08993ad4
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.30.content.2.text: cache_control cannot be set for empty text blocks\"},\"request_id\":\"req_011CbQXmQZdkq8cxNcji6jLb\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63586)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-26T04:14:41.948Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011CbQXt8PzXU3ou5fsjsJGo\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63586)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-26T04:16:13.854Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011CbQXuMLPiJjc8L69nfj5M\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63586)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-26T04:16:30.014Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011CbQXvYmzwSTVDiENzYVZN\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63586)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-26T04:16:46.256Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗