[Bug] Anthropic API Error: Could not process image with downloaded JPG files

Resolved 💬 3 comments Opened Apr 2, 2026 by metabsorber Closed Apr 6, 2026

Bug Description
connected telegram mcp then created dir in working repo then downloaded images via telegram mcp in jpg - got API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Could not process
image"},"request_id":"req_011CZf2tg215Doam3m8rhDn3"}

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.90
  • Feedback ID: 61a6817b-01be-476d-a8c9-f5053448787e

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/cj/.local/share/claude/versions/2.1.90 (expected in multi-process scenarios)\n    at Cu_ (/$bunfs/root/src/entrypoints/cli.js:1894:2138)\n    at uQ6 (/$bunfs/root/src/entrypoints/cli.js:1894:1218)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-02T13:32:24.382Z"},{"error":"Unable to determine image format","timestamp":"2026-04-02T13:35:59.814Z"},{"error":"Unable to determine image format","timestamp":"2026-04-02T13:35:59.814Z"},{"error":"ImageResizeError: Unable to compress image (83.8KB) to fit within 58.6KB. Please use a smaller image.\n    at RO9 (/$bunfs/root/src/entrypoints/cli.js:1281:5854)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-02T13:35:59.814Z"},{"error":"Error: Could not load the \"sharp\" module using the darwin-arm64 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=darwin --cpu=arm64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1250:2606)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:11:1047)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1254:61)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:11:1047)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:1281:13)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:11:1047)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:4312:3818)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-02T13:35:59.823Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CZf2tg215Doam3m8rhDn3\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51662)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-02T13:36:02.535Z"}]

View original on GitHub ↗

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