[Bug] Anthropic API Error: 400 Bad Request
Resolved 💬 2 comments Opened Apr 3, 2026 by ehalsey Closed May 13, 2026
Bug Description
"API Error: 400" errors consistently
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.1.89
- Feedback ID: 665ce86a-20d2-49ec-a941-03fcbe8c6fb3
Errors
[{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-01-scheduling-calendar-edits-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-01-scheduling-calendar-edits-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T18:50:17.374Z"},{"error":"Unable to determine image format","timestamp":"2026-04-01T22:10:27.096Z"},{"error":"Unable to determine image format","timestamp":"2026-04-01T22:10:27.097Z"},{"error":"ImageResizeError: Unable to compress image (295.2KB) to fit within 58.6KB. Please use a smaller image.\n at b1K (B:/~BUN/root/src/entrypoints/cli.js:1344:5868)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T22:10:27.097Z"},{"error":"Error: Could not load the \"sharp\" module using the win32-x64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n npm install --os=win32 --cpu=x64 sharp\n- Consult the installation documentation:\n See https://sharp.pixelplumbing.com/install\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1313:2606)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:11:1047)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1317:61)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:11:1047)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1344:13)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:11:1047)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4355:3818)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T22:10:27.118Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CZdpJxph3mHzUqXv2Vs67\"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51392)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T22:10:27.363Z"},{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-01-mayra-users-text-messaging-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-01-mayra-users-text-messaging-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T22:43:41.777Z"},{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-mayra-marketers-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-mayra-marketers-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-03T17:47:26.158Z"},{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-erika-daily-numbers-report-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-erika-daily-numbers-report-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-03T17:47:27.966Z"},{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-tina-neutech-implementation-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-tina-neutech-implementation-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-03T17:47:29.857Z"},{"error":"YFK: Diagnostics file path mismatch: expected C:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-fernanda-neutech-implementation-followup.md, got file://c:\\source\\mbc\\mbc-pm\\docs\\emails\\2026-04-03-fernanda-neutech-implementation-followup.md/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:2024:15911)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-03T17:52:52.590Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-03T19:48:04.336Z"},{"error":"Unable to determine image format","timestamp":"2026-04-03T19:48:46.964Z"},{"error":"Unable to determine image format","timestamp":"2026-04-03T19:48:46.965Z…
Note: Content was truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗