[Bug] Anthropic API Error: Image Upload >5MB Causes Persistent State Error

Resolved 💬 3 comments Opened Nov 25, 2025 by jamesjdistefano Closed Jan 27, 2026

Bug Description
when i try to upload an image of > 5MB, the API gives me an error. But every subsequent command I issue gives me the same error, whether i upload a smaller file or don't upload anything. the only option I have is to quit Claude Code and start again. Claude recommended I tell you about the bug.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.53
  • Feedback ID: 5f41d61c-c29d-4551-a594-ae4a32e76c32

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jamesdistefano/.local/share/claude/versions/2.0.53 (expected in multi-process scenarios)\n    at nL0 (/$bunfs/root/claude:2656:1622)\n    at F6A (/$bunfs/root/claude:2656:1300)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:27:35.786Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jamesdistefano/.local/share/claude/versions/2.0.53 (expected in multi-process scenarios)\n    at nL0 (/$bunfs/root/claude:2656:1622)\n    at E6A (/$bunfs/root/claude:2654:12709)\n    at async p97 (/$bunfs/root/claude:2654:13911)\n    at async Zx (/$bunfs/root/claude:2656:236)\n    at async <anonymous> (/$bunfs/root/claude:2656:12469)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:27:43.721Z"},{"error":"MaxFileReadTokenExceededError: File content (118892 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 GrB (/$bunfs/root/claude:1450:40997)\n    at async call (/$bunfs/root/claude:1459:972)\n    at async <anonymous> (/$bunfs/root/claude:1593:1512)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:28:15.642Z"},{"error":"Error\n    at NU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10054)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:29:48.228Z"},{"error":"Error\n    at NU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10054)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:29:52.413Z"},{"error":"Error\n    at NU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10054)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-25T18:29:52.538Z"}]

View original on GitHub ↗

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