[Bug] Anthropic API Error: Image Upload Exceeds 5 MB Size Limit despite not uploading any image
Resolved 💬 3 comments Opened Sep 24, 2025 by abhihub Closed Jan 6, 2026
Bug Description
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.176.content.0.image.source.base64: image exceeds 5 MB maximum: 6591440
bytes > 5242880 bytes"},"request_id":"req_011CTSVq8TPYTMWY3uuvJA9C"}
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 1.0.93
- Feedback ID: b18c5fad-8838-4596-b5cb-68addd0c95e8
Errors
[{"error":"Error: Request was aborted.\n at new pW (unknown:1:28)\n at new c5 (/$bunfs/root/claude:765:1962)\n at new G6 (/$bunfs/root/claude:765:2750)\n at _createMessage (/$bunfs/root/claude:773:7955)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T17:40:47.859Z"},{"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:262:37175)\n at <anonymous> (/$bunfs/root/claude:12:838)\n at <anonymous> (/$bunfs/root/claude:263:78)\n at <anonymous> (/$bunfs/root/claude:12:838)\n at <anonymous> (/$bunfs/root/claude:263:79845)\n at <anonymous> (/$bunfs/root/claude:12:838)\n at <anonymous> (/$bunfs/root/claude:660:1708)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T17:44:26.365Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at T10 (/$bunfs/root/claude:660:1731)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T17:44:36.066Z"},{"error":"Error: Request was aborted.\n at new pW (unknown:1:28)\n at new c5 (/$bunfs/root/claude:765:1962)\n at new G6 (/$bunfs/root/claude:765:2750)\n at makeRequest (/$bunfs/root/claude:782:3840)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T17:47:22.904Z"},{"error":"Error: Request was aborted.\n at new pW (unknown:1:28)\n at new c5 (/$bunfs/root/claude:765:1962)\n at new G6 (/$bunfs/root/claude:765:2750)\n at makeRequest (/$bunfs/root/claude:782:3840)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T19:23:42.808Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at mn1 (/$bunfs/root/claude:551:11211)\n at call (/$bunfs/root/claude:1619:939)\n at wH9 (/$bunfs/root/claude:3534:11227)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T19:24:10.904Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at mn1 (/$bunfs/root/claude:551:11211)\n at call (/$bunfs/root/claude:1619:939)\n at wH9 (/$bunfs/root/claude:3534:11227)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T19:25:27.293Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at N3 (/$bunfs/root/claude:1609:1192)\n at map (native:1:11)\n at zK (/$bunfs/root/claude:1609:905)\n at eZW (/$bunfs/root/claude:3132:9114)\n at KF (/$bunfs/root/claude:187:19415)\n at vb (/$bunfs/root/claude:189:42805)\n at MY (/$bunfs/root/claude:189:38347)\n at oy (/$bunfs/root/claude:189:38275)\n at NF (/$bunfs/root/claude:189:38129)\n at SI (/$bunfs/root/claude:189:35208)","timestamp":"2025-09-03T19:26:41.831Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/gobi/Desktop/P3.png /Users/gobi/Desktop/P2.png /Users/gobi/Desktop/P1.png'\n at readFileSync (unknown)\n at c0G (/$bunfs/root/claude:660:5404)\n at c0G (/$bunfs/root/claude:660:5662)\n at <anonymous> (/$bunfs/root/claude:681:1978)\n at WL (/$bunfs/root/claude:187:20722)\n at LZG (/$bunfs/root/claude:681:1302)\n at hq0 (/$bunfs/root/claude:681:3180)\n at KF (/$bunfs/root/claude:187:19415)\n at pE (/$bunfs/root/claude:189:3229)\n at MY (/$bunfs/root/claude:189:38347)","timestamp":"2025-09-03T21:10:37.237Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at T10 (/$bunfs/root/claude:660:1731)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-09-03T21:20:28.053Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗