Image Upload Exceeds 5MB Maximum Size Limit Block Any Further Action

Resolved 💬 3 comments Opened Aug 8, 2025 by Maxymvs Closed Aug 15, 2025

Bug Description
I got image exceeds 5mb maximum error and now no matter what I do I can't make the chat do anything. Not even compact to start a new one. \
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"message
s.120.content.0.image.source.base64: image exceeds 5 MB maximum: 9427836 bytes > 5242880
bytes"}}

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.72
  • Feedback ID:

Errors

[{"error":"Error: 1: 1 \n    at Gm9 (/$bunfs/root/claude:816:4827)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-08T19:40:37.209Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at fV (/$bunfs/root/claude:1725:1192)\n    at <anonymous> (/$bunfs/root/claude:1725:2173)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2145)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2050)\n    at map (native:1:11)\n    at yV (/$bunfs/root/claude:1725:905)\n    at RsG (/$bunfs/root/claude:2085:5239)\n    at DE (/$bunfs/root/claude:188:19860)","timestamp":"2025-08-08T19:41:04.523Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at fV (/$bunfs/root/claude:1725:1192)\n    at <anonymous> (/$bunfs/root/claude:1725:2173)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2145)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2050)\n    at map (native:1:11)\n    at yV (/$bunfs/root/claude:1725:905)\n    at RsG (/$bunfs/root/claude:2085:5239)\n    at DE (/$bunfs/root/claude:188:19860)","timestamp":"2025-08-08T19:41:04.535Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at fV (/$bunfs/root/claude:1725:1192)\n    at <anonymous> (/$bunfs/root/claude:1725:2173)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2145)\n    at map (native:1:11)\n    at fV (/$bunfs/root/claude:1725:2050)\n    at map (native:1:11)\n    at yV (/$bunfs/root/claude:1725:905)\n    at RsG (/$bunfs/root/claude:2085:5239)\n    at DE (/$bunfs/root/claude:188:19860)","timestamp":"2025-08-08T19:41:04.555Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at fV (/$bunfs/root/claude:1725:1192)\n    at map (native:1:11)\n    at yV (/$bunfs/root/claude:1725:905)\n    at RsG (/$bunfs/root/claude:2085:5239)\n    at DE (/$bunfs/root/claude:188:19860)\n    at Gy (/$bunfs/root/claude:190:42827)\n    at ef (/$bunfs/root/claude:190:38350)\n    at KR (/$bunfs/root/claude:190:38278)\n    at OE (/$bunfs/root/claude:190:38132)\n    at PK (/$bunfs/root/claude:190:35195)","timestamp":"2025-08-08T19:41:04.556Z"},{"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:316:71093)\n    at <anonymous> (/$bunfs/root/claude:12:838)\n    at <anonymous> (/$bunfs/root/claude:317:78)\n    at <anonymous> (/$bunfs/root/claude:12:838)\n    at <anonymous> (/$bunfs/root/claude:317:79845)\n    at <anonymous> (/$bunfs/root/claude:12:838)\n    at <anonymous> (/$bunfs/root/claude:683:1732)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-08T19:41:12.005Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.120.content.0.image.source.base64: image exceeds 5 MB maximum: 9427836 bytes > 5242880 bytes\"}}\n    at new eW (unknown:1:28)\n    at new qY (/$bunfs/root/claude:788:1853)\n    at new sG0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:788:2310)\n    at makeRequest (/$bunfs/root/claude:805:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-08T19:42:04.420Z"},{"error":"Error\n    at R$ (/$bunfs/root/claude:493:1076)\n    at V1 (/$bunfs/root/claude:494:9957)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:862:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:496:2098)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-08T19:43:36.821Z"}]

View original on GitHub ↗

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