[Bug] Anthropic API Error: Unspecified API Error

Resolved 💬 3 comments Opened Mar 5, 2026 by iblue Closed Mar 9, 2026

Bug Description
I get API errors after Claude Code tried to recover JPEG files from a broken disk image and trying to read them.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.69
  • Feedback ID: 4eacae23-7c53-43ec-9803-46a3d6e29843

Errors

[{"error":"Error: Input buffer has corrupt header: VipsJpeg: premature end of JPEG image\n    at x96.ng9 [as metadata] (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1172:12668)\n    at Sg (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:1630)\n    at async JV8 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:3130)\n    at async E54 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:394)\n    at async Object.call (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1525:5603)\n    at async _7z (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3579:14904)","timestamp":"2026-03-05T12:50:26.178Z"},{"error":"Error: Input buffer has corrupt header: VipsJpeg: premature end of JPEG image\n    at x96.ng9 [as metadata] (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1172:12668)\n    at Sg (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:1630)\n    at async JV8 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:3130)\n    at async E54 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:394)\n    at async Object.call (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1525:5603)\n    at async _7z (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3579:14904)","timestamp":"2026-03-05T12:50:26.298Z"},{"error":"Error: Input buffer has corrupt header: VipsJpeg: premature end of JPEG image\n    at x96.ng9 [as metadata] (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1172:12668)\n    at Sg (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:1630)\n    at async JV8 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:3130)\n    at async E54 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:394)\n    at async Object.call (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1525:5603)\n    at async _7z (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3579:14904)","timestamp":"2026-03-05T12:50:26.361Z"},{"error":"Error: Input buffer has corrupt header: VipsJpeg: premature end of JPEG image\n    at x96.ng9 [as metadata] (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1172:12668)\n    at Sg (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1196:1630)\n    at async JV8 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:3130)\n    at async E54 (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1520:394)\n    at async Object.call (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1525:5603)\n    at async _7z (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3579:14904)","timestamp":"2026-03-05T12:50:26.636Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CYjxmQx2gxzdFi8Q2MoPV\"}\n    at v4.generate (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:312:8965)\n    at UC.makeStatusError (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:351:2195)\n    at UC.makeRequest (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:351:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-03-05T12:50:27.100Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CYjyH9jpU6sXAyEX4NAUH\"}\n    at v4.generate (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:312:8965)\n    at UC.makeStatusError (file:///home/iblue/.asdf/installs/nodejs/22.8.0/lib/node_modules/…

Note: Content was truncated.

View original on GitHub ↗

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