Image Upload Size Limit Exceeded in Multi-Image API Request
Resolved 💬 3 comments Opened Jul 3, 2025 by quan-possible Closed Dec 10, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5.content.20.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"}}\
\
After I get this message, I can't make the AI to keep working. It will keep running into the same problem again and again.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.41
- Feedback ID: 17027bf3-5e22-4d15-810e-492d388f27b6
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at JI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at _X (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at w_ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at U9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-03T07:07:16.927Z"},{"error":"MaxFileReadTokenExceededError: File content (38137 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at kC5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1426:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1421:4919)\n at async yw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:11444)\n at async cz1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:8191)\n at async gz1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1911:775)\n at async jw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:7335)\n at async Pw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:6820)\n at async A$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:5217)\n at async A$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:5939)","timestamp":"2025-07-03T07:09:54.731Z"},{"error":"MaxFileReadTokenExceededError: File content (42695 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at kC5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1426:432)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1421:4919)\n at async yw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:11444)\n at async cz1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:8191)","timestamp":"2025-07-03T07:09:54.773Z"},{"error":"Error: Diagnostics file path mismatch: expected /Users/brucenguyen/My Drive/Work/Economics/jobads-data/notebooks/eda/utils/prep.py, got file:///Users/brucenguyen/My%20Drive/Work/Economics/jobads-data/notebooks/eda/utils/prep.py)\n at sK.beforeFileEdited (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1383:14774)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1647:495)\n at async yw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:11444)\n at async cz1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:8191)\n at async _w5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:7215)\n at async Pw5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:6844)\n at async A$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:5217)\n at async A$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:5939)\n at async A$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1931:5939)","timestamp":"2025-07-03T07:10:39.281Z"},{"error":"Error: Diagnostics file path mismatch: expected /Users/brucenguyen/My Drive/Work/Economics/jobads-data/notebooks/eda/utils/prep.py, got file:///Users/brucenguyen/My%20
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗