[Bug] Anthropic API Error: Image media type mismatch for PNG files
Resolved 💬 3 comments Opened Nov 20, 2025 by amihos Closed Nov 24, 2025
Bug Description
when claude wants to check images: Read(test_outputs\v3_4_five_scenes_20251120_200109\scene_03_v1.png)
⎿ Read image (722.8KB)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11.content.7.image.source.base64.data: Image does not match the
provided media type image/png"},"request_id":"req_011CVKmEPixtpFEzbf1TQZo4"}
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.0.47
- Feedback ID:
Errors
[{"error":"AbortError: The operation was aborted.\n at unknown\n at abortChildProcess (node:child_process:947:42)\n at onAbortListener2 (node:child_process:35:24)\n at abort (unknown)\n at <anonymous> (B:/~BUN/root/claude.exe:4468:10866)","timestamp":"2025-11-20T19:24:05.748Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:24:16.967Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:24:41.880Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:25:01.514Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:25:29.887Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:26:07.278Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:26:26.833Z"},{"error":"MaxFileReadTokenExceededError: File content (34551 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 gkI (B:/~BUN/root/claude.exe:1726:28411)\n at async call (B:/~BUN/root/claude.exe:1735:972)\n at async <anonymous> (B:/~BUN/root/claude.exe:3928:1446)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:26:35.939Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:46:49523)\n at <anonymous> (B:/~BUN/root/claude.exe:64:10246)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/claude.exe:63:1146)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:248:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:66:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-20T19:26:45.61
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗