[Bug] Image reading fails on non-image JPEG files

Resolved 💬 4 comments Opened Apr 19, 2026 by jayenashar Closed May 19, 2026

Bug Description
claude is stuck trying to read an file which is not an image. /tmp/discord_screenshot.jpg

/tmp/image0.jpg is a valid image

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.110
  • Feedback ID: be6887bb-2bde-4006-beac-bbcdea84ee00

Errors

[{"error":"Error: Plugin path not found: /home/jayen/.claude/plugins/marketplaces/local/plugins/phela\n    at T3z (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1251:10779)\n    at async file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1251:9043\n    at async Promise.allSettled (index 1)\n    at async vG4 (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1251:8322)\n    at async Promise.all (index 0)\n    at async kG4 (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1251:20232)\n    at async file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:1251:21637\n    at async file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8626:6463","timestamp":"2026-04-19T00:16:14.362Z"},{"error":"Error: Could not load the \"sharp\" module using the linux-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=linux --cpu=x64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:612:2591\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:868\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:616:58\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:868\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:10\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:868\n    at file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:398\n    at async I$6 (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:360)\n    at async da (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:2396)\n    at async e37 (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4989:3417)","timestamp":"2026-04-19T00:21:09.579Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CaCB2dmqdPRfAJpJrvPRy\"}\n    at hq.generate (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52263)\n    at aL.makeStatusError (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-04-19T00:21:09.939Z"},{"error":"TypeError: Y is not a function\n    at da (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:2416)\n    at async e37 (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4989:3417)\n    at async NEK (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4989:428)\n    at async Object.call (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4994:7236)\n    at async sjY (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:4444:8327)","timestamp":"2026-04-19T00:21:16.454Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Could not process image\"},\"request_id\":\"req_011CaCB39CQAWsZMjd2ageXE\"}\n    at hq.generate (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52263)\n    at aL.makeStatusError (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at aL.makeRequest (file:///home/jayen/.nvm/versions/node/v20.19.6/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:492…

Note: Content was truncated.

View original on GitHub ↗

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