claude-code
claude-code copied to clipboard
"Image Loading Failure: Unrecoverable Error with Large Image Files"
Bug Description when reading an image in an ipynb that is too large Claude gets stuck in some kind of unrecoverable error
Environment Info
- Platform: macos
- Terminal: cursor
- Version: 0.2.124
- Feedback ID: a488c66c-0173-4e5d-9c75-32b3f52dc8c9
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.7.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels\"}}\n at p5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:4455)\n at F3.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:7240)\n at F3.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-05-21T17:13:51.146Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.7.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels\"}}\n at p5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:4455)\n at F3.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:7240)\n at F3.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Hs.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:13055)\n at async Hs (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:6342)\n at async p96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:12931)\n at async gb1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1453:5218)\n at async NJ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:11162)\n at async Hy5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1914:1366)","timestamp":"2025-05-21T17:13:52.521Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.7.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels\"}}\n at p5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:4455)\n at F3.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:7240)\n at F3.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-05-21T17:14:33.730Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.7.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels\"}}\n at p5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:4455)\n at F3.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:7240)\n at F3.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Hs.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:13055)\n at async Hs (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:6342)\n at async p96 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:12931)\n at async gb1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1453:5218)\n at async NJ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1460:11162)\n at async Hy5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1914:1366)","timestamp":"2025-05-21T17:14:34.955Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.7.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels\"}}\n at p5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:4455)\n at F3.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:7240)\n at F3.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:675:8185)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-05-21T17:16:09.085Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"typ
Note: Error logs were truncated.
I'm also facing this same issue via Terminal dot app on macOS.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.