[Bug] Anthropic API Error 400 when processing PNG files
Resolved 💬 4 comments Opened Dec 1, 2025 by pmatos Closed Dec 5, 2025
Bug Description
API Error 400 when reading png file.
Environment Info
- Platform: linux
- Terminal: ghostty
- Version: 2.0.55
- Feedback ID:
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/pmatos/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n at tPD (/$bunfs/root/claude:2664:1622)\n at o4A (/$bunfs/root/claude:2664:1300)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-28T13:42:08.697Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at readFileSync (/$bunfs/root/claude:12:370)\n at gsI (/$bunfs/root/claude:4257:17094)\n at call (/$bunfs/root/claude:1456:912)\n at call (/$bunfs/root/claude:1452:5768)\n at <anonymous> (/$bunfs/root/claude:1648:1512)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T07:50:42.913Z"},{"error":"MaxFileReadTokenExceededError: File content (118607 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 vsI (/$bunfs/root/claude:1447:41001)\n at async call (/$bunfs/root/claude:1456:972)\n at async <anonymous> (/$bunfs/root/claude:1648:1512)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:17:25.335Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:21:53.706Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:22:10.363Z"},{"error":"MaxFileReadTokenExceededError: File content (118607 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 vsI (/$bunfs/root/claude:1447:41001)\n at async call (/$bunfs/root/claude:1456:972)\n at async <anonymous> (/$bunfs/root/claude:1648:1512)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:22:49.758Z"},{"error":"MaxFileReadTokenExceededError: File content (118607 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 vsI (/$bunfs/root/claude:1447:41001)\n at async call (/$bunfs/root/claude:1456:972)\n at async <anonymous> (/$bunfs/root/claude:1648:1512)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:23:10.573Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:27:10.461Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:32:10.408Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:37:10.426Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\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:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-01T09:42:10.349Z"},{"error":"Error\n at mO (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10086)\n
Note: Error logs were truncated.
● Read(app/static/hero-illustration.png)
⎿ Read image (775.2KB)
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.7.image.source.base64.data: Image does
not match the provided media type image/png"},"request_id":"req_011CVfqEQMCtqrBbdG3yCb59"}This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗