Skip to content

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

Description

@PaoloDiBello

Bug Description
⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CYHQrKZtUxh74x6HFmGoa"}

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.39
  • Feedback ID: e72d873b-7ee9-45ba-b550-7740b32e565b

Errors

[{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:08:33.147Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:08:51.886Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n    at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:11:09.182Z"},{"error":"Error: {\"message\":\"Failed to export 3 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"1909\",\"originalColumn\":\"1409\",\"line\":\"1909\",\"column\":\"1409\",\"sourceURL\":\"B:/~BUN/root/claude.exe\",\"stack\":\"Error: Failed to export 3 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (B:/~BUN/root/claude.exe:1909:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (B:/~BUN/root/claude.exe:1952:25028)\n    at <anonymous> (B:/~BUN/root/claude.exe:1904:19992)\n    at Jv1 (B:/~BUN/root/claude.exe:1904:20536)\n    at <anonymous> (B:/~BUN/root/claude.exe:1905:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:11:09.183Z"},{"error":"Error: 1P event logging: 22 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n    at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:11:32.463Z"},{"error":"Error: {\"message\":\"Failed to export 22 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"1909\",\"originalColumn\":\"1409\",\"line\":\"1909\",\"column\":\"1409\",\"sourceURL\":\"B:/~BUN/root/claude.exe\",\"stack\":\"Error: Failed to export 22 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (B:/~BUN/root/claude.exe:1909:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (B:/~BUN/root/claude.exe:1952:25028)\n    at <anonymous> (B:/~BUN/root/claude.exe:1904:19992)\n    at Jv1 (B:/~BUN/root/claude.exe:1904:20536)\n    at <anonymous> (B:/~BUN/root/claude.exe:1905:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:11:32.463Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:11:51.722Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n    at request (B:/~BUN/root/claude.exe:45:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:12:21.599Z"},{"error":"Error: 1P event logging: 21 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n    at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T08:12:27.915Z"},{"error":"Error: {\"message\":\"Failed to export 21 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"1909\",\"originalColumn\":\"1409\",\"line\":\"1909\",\"column\":\"1409\",\"sourceURL\":\"B:/~BUN/root/claude.exe\",\"stack\":\"Error: Failed to export 21 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (B:/~BUN/root/claude.exe:1909:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (B:/~BUN/root/claude.exe:1952:25028)\n    at <anonymous>…

Note: Content was truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions