[Bug] Anthropic API Error: 400 Bad Request on task initialization

Resolved 💬 3 comments Opened Feb 17, 2026 by Rabusek Closed Feb 21, 2026

Bug Description
I was running automated testing for 25mins, and when i cancelled it turned out it errored out with error 400 (likely immediately)

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.42
  • Feedback ID: f910f211-0a9b-43c4-8f2d-7d7da9e864eb

Errors

[{"error":"Error: 1P event logging: 200 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/claude:2110:2350)\n    at async doExport (/$bunfs/root/claude:2110:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:09:17.327Z"},{"error":"Error: {\"message\":\"Failed to export 200 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"2110\",\"originalColumn\":\"1409\",\"line\":\"2110\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 200 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (/$bunfs/root/claude:2110:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2153:25028)\n    at <anonymous> (/$bunfs/root/claude:2105:20180)\n    at cd7 (/$bunfs/root/claude:2105:20724)\n    at <anonymous> (/$bunfs/root/claude:2106:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:09:17.330Z"},{"error":"Error: Request was aborted.\n    at g5R (/$bunfs/root/claude:869:100994)\n    at next (native:1:11)\n    at jeB (/$bunfs/root/claude:5566:5182)\n    at next (native:1:11)\n    at xeB (/$bunfs/root/claude:5571:9101)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:11:02.748Z"},{"error":"Error: Request was aborted.\n    at g5R (/$bunfs/root/claude:869:100994)\n    at next (native:1:11)\n    at xeB (/$bunfs/root/claude:5571:3162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:11:02.819Z"},{"error":"Error: Compaction interrupted · This may be due to network issues — please try again.\n    at PbB (/$bunfs/root/claude:3161:5282)\n    at async bET (unknown)\n    at async QyB (unknown)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:11:02.827Z"},{"error":"Error: Request was aborted.\n    at g5R (/$bunfs/root/claude:869:100994)\n    at next (native:1:11)\n    at xeB (/$bunfs/root/claude:5571:3162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:11:02.865Z"},{"error":"Error: 1P event logging: 163 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/claude:2110:2350)\n    at async doExport (/$bunfs/root/claude:2110:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:22:29.768Z"},{"error":"Error: {\"message\":\"Failed to export 163 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"2110\",\"originalColumn\":\"1409\",\"line\":\"2110\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 163 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (/$bunfs/root/claude:2110:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:2153:25028)\n    at <anonymous> (/$bunfs/root/claude:2105:20180)\n    at cd7 (/$bunfs/root/claude:2105:20724)\n    at <anonymous> (/$bunfs/root/claude:2106:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:22:29.812Z"},{"error":"Error: File does not exist.\n    at call (/$bunfs/root/claude:1309:6225)\n    at async <anonymous> (/$bunfs/root/claude:5821:1670)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-17T17:43:33.234Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (138 -> 141 messages). Message structure: [0] user; [1] user; [2] assistant(id=msg_012DmuWbq5a1DaaVFGtb6zDc, tool_uses=[toolu_01UiQpuhyyqwqCCFdWgkc4yk,toolu_01Lzq66YPmCKk6W2XybcMY6w,toolu_01RBaywEDdcSNf27MQ5MQLxs]); [3] user(tool_results=[toolu_01UiQpuhyyqwqCCFdWgkc4yk,toolu_01RBaywEDdcSNf27MQ5MQLxs,toolu_01Lzq66YPmCKk6W2XybcMY6w]); [4] assistant(id=msg_01YLxjLeQ94KtT2QxaExxfL5, tool_uses=[toolu_015tXSPxh6GF7RyoefPpfZgY]); [5] user(tool_results=[toolu_015tXSPxh6GF7RyoefPpfZgY]); [6] assistant(id=msg_0161VtcQREYXqAYGgPvHcHkr, tool_uses=[toolu_01VvvhPkcWErQpcj7BuyGw2Y,toolu_019Lj3m7t3pC9G7bCZxpqaiU]); [7] user(tool_results=[toolu_01VvvhPkcWErQpcj7BuyGw2Y,toolu_019Lj3m7t3pC9G7bCZxpqaiU]); [8] assistant(id=msg_01V5evYzjoqr51vCqoHuMJi5, tool_uses=[toolu_01DfR5jBYjRnY8UNg9FFXuhv]); [9] user(tool_results=[toolu_01DfR5jBYjRnY8UNg9FFXuhv]); [10] assistant(id=msg_01LUgM8kE42htbaRjenmTDEn, tool_uses=[]); [11] assistant(id=msg_017cyvntEibu…

Note: Content was truncated.

View original on GitHub ↗

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