[Bug] Anthropic API Error: Image size validation incorrect for files under 5MB limit
Resolved 💬 3 comments Opened Oct 27, 2025 by syx-labs Closed Oct 31, 2025
Bug Description
The file has 1.2 mb and is giving a error of image exceeds 5mb maximum.
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.0.27
- Feedback ID: 3b65299d-52f4-47ec-a6de-03073640f168
Errors
[{"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/claude:225:36534)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:226:78)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:226:79741)\n at <anonymous> (/$bunfs/root/claude:11:356)\n at <anonymous> (/$bunfs/root/claude:226:79916)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-27T14:30:34.941Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0.content.3.image.source.base64: image exceeds 5 MB maximum: 6888344 bytes > 5242880 bytes\"},\"request_id\":\"req_011CUXs4esXdZeHB9Njf7YZr\"}\n at generate (/$bunfs/root/claude:380:25576)\n at makeRequest (/$bunfs/root/claude:525:5345)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-27T14:30:43.910Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗