[Bug] Anthropic API Error: Image Size Exceeds 5MB Limit
Resolved 💬 3 comments Opened Oct 8, 2025 by prestonbrown Closed Oct 8, 2025
Bug Description
Claude tried to upload a 9MB image but that's over the limit, and now it's stuck with any prompts following this. I also tried a /compact, but it results in same error...
⎿ Error: Error during compaction: Error: API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.586.content.0
.tool_result.content.0.image.source.base64: image exceeds 5 MB maximum: 12924448 bytes >
5242880 bytes"},"request_id":"req_011CTu15v4QW2uKUxLogdTBc"}
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.9
- Feedback ID:
Errors
[{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.162Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.163Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.163Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.164Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.164Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.164Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.165Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.165Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.166Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.166Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.166Z"},{"error":"Cannot find module './image-processor.node' from '/$bunfs/root/claude'","timestamp":"2025-10-08T01:56:13.167Z"},{"error":"TypeError: (W.default||W) is not a function. (In '(W.default||W)(G)', '(W.default||W)' is an instance of Object)\n at AbY (/$bunfs/root/claude:1685:2315)\n at async IbY (/$bunfs/root/claude:1685:744)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.167Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object)\n at Ud (/$bunfs/root/claude:642:1865)\n at async NbY (/$bunfs/root/claude:1685:2723)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-10-08T01:56:13.167Z"},{"error":"TypeError: (Y.default||Y) is not a function. (In '(Y.default||Y)(Z)', '(Y.default||Y)' is an instance of Object
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗