[Bug] Anthropic API Error: Empty text content blocks in messages

Resolved 💬 3 comments Opened May 16, 2026 by aymaneprojects Closed May 20, 2026

Bug Description
⎿ API Error: 400 messages: text content blocks must be non-empty

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.143
  • Feedback ID: faedffaa-5e4d-491d-8385-2c34f71c2bb2

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011Cb6rDkE5PVrG2yyGbLPbn\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62291)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T20:06:00.371Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011Cb6rE5RjUQUonDSzyDBm1\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62291)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T20:06:04.866Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011Cb6rE6zVEZGPHeHXaXE25\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62291)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T20:06:05.175Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011Cb6rE8LbhuaUDpFvpK7cT\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62291)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T20:06:05.512Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗