[Bug] Anthropic API Error: Unsupported image format image/png in base64 encoded content
Resolved 💬 3 comments Opened Feb 25, 2026 by yucelz Closed Mar 26, 2026
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.34.content.2.image.source.base64.data: Image format image/png not
supported"},"request_id":"req_011CYUbjafcneBoXiMeBLp7h"}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.1.50
- Feedback ID: 588bce99-1fe7-4d1c-bb4f-a13fffa12eeb
Errors
[{"error":"Error\n at Ty (/$bunfs/root/claude:92:1144)\n at <anonymous> (/$bunfs/root/claude:93:10097)\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:95:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-23T10:51:44.050Z"},{"error":"MaxFileReadTokenExceededError: File content (29903 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 BrD (/$bunfs/root/claude:4812:21391)\n at async frD (/$bunfs/root/claude:4816:2464)\n at async call (/$bunfs/root/claude:4821:6004)\n at async My1 (/$bunfs/root/claude:2004:15034)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-23T11:04:42.726Z"},{"error":"Error\n at Ty (/$bunfs/root/claude:92:1144)\n at <anonymous> (/$bunfs/root/claude:93:10097)\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:95:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-23T21:37:29.582Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/claude:300:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-23T21:47:21.155Z"},{"error":"Error: 1P event logging: 6 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (/$bunfs/root/claude:6081:2350)\n at async doExport (/$bunfs/root/claude:6081:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-25T09:21:48.629Z"},{"error":"Error: {\"message\":\"Failed to export 6 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"6081\",\"originalColumn\":\"1409\",\"line\":\"6081\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 6 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (/$bunfs/root/claude:6081:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:2098:25028)\n at <anonymous> (/$bunfs/root/claude:118:92467)\n at PI0 (/$bunfs/root/claude:118:93011)\n at <anonymous> (/$bunfs/root/claude:119:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-25T09:21:48.630Z"},{"error":"Error\n at Ty (/$bunfs/root/claude:92:1144)\n at <anonymous> (/$bunfs/root/claude:93:10097)\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:95:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-25T09:23:33.200Z"},{"error":"Failed to decode image: The image format Avif is not supported","timestamp":"2026-02-25T10:04:45.521Z"},{"error":"Failed to decode image: The image format Avif is not supported","timestamp":"2026-02-25T10:05:01.155Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.34.content.2.image.source.base64.data: Image format image/png not supported\"},\"request_id\":\"req_011CYUbgUCr658VYSRJFSUV3\"}\n at generate (/$bunfs/root/claude:261:28230)\n at makeRequest (/$bunfs/root/claude:300:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-25T10:05:03.495Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.34.content.2.image.source.base64.data: Image format image/png not supported\"},\"request_id\":\"req_011CYUbjafcneBoXiMeBLp7h\"}\n at generate (/$bunfs/root/claude:261:28230)\n at makeRequest (/$bunfs/root/claude:300:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-25T10:05:44.304Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗