[Bug] Anthropic API Error: Image does not match provided media type on base64 encoded image

Resolved 💬 3 comments Opened Nov 29, 2025 by kieranklaassen Closed Dec 3, 2025

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"mes
sages.13.content.4.image.source.base64.data: Image does not match the provided media
type image/png"},"request_id":"req_011CVcqDwjoUBUp8rq63Lgmg"}
after reading an image, completly stuck conversation

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.0.55
  • Feedback ID: 0cedc5af-88d0-4546-82db-d68ef6fdd314

Errors

[{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n    at zo (/$bunfs/root/claude:860:81025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:21.213Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n    at MGR (/$bunfs/root/claude:860:80003)\n    at async AV8 (/$bunfs/root/claude:1450:41907)\n    at async TBA (/$bunfs/root/claude:1450:42125)\n    at async call (/$bunfs/root/claude:1459:389)\n    at async sT7 (/$bunfs/root/claude:2229:16728)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:25.712Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n    at MGR (/$bunfs/root/claude:860:80003)\n    at async AV8 (/$bunfs/root/claude:1450:41907)\n    at async TBA (/$bunfs/root/claude:1450:42125)\n    at async call (/$bunfs/root/claude:1459:389)\n    at async sT7 (/$bunfs/root/claude:2229:16728)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:25.713Z"},{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n    at zo (/$bunfs/root/claude:860:81025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:25.713Z"},{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n    at zo (/$bunfs/root/claude:860:81025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:25.713Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.19.content.10.image.source.base64.data: Image does not match the provided media type image/png\"},\"request_id\":\"req_011CVbfYTCBfdbWw4kweFtEm\"}\n    at generate (/$bunfs/root/claude:415:9441)\n    at makeRequest (/$bunfs/root/claude:1262:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:27.301Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.19.content.11.image.source.base64.data: Image does not match the provided media type image/png\"},\"request_id\":\"req_011CVbfZexdijx9ton3S78iH\"}\n    at generate (/$bunfs/root/claude:415:9441)\n    at makeRequest (/$bunfs/root/claude:1262:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:56:44.902Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kieranklaassen/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:57:05.178Z"},{"error":"MaxFileReadTokenExceededError: File content (28497 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 psB (/$bunfs/root/claude:1450:41002)\n    at async call (/$bunfs/root/claude:1459:972)\n    at async <anonymous> (/$bunfs/root/claude:1651:1512)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:57:48.815Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n    at MGR (/$bunfs/root/claude:860:80003)\n    at async AV8 (/$bunfs/root/claude:1450:41907)\n    at async TBA (/$bunfs/root/claude:1450:42125)\n    at async call (/$bunfs/root/claude:1459:389)\n    at async <anonymous> (/$bunfs/root/claude:1651:1512)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:57:48.820Z"},{"error":"TypeError: G is not a function. (In 'G(R)', 'G' is an instance of Object)\n    at zo (/$bunfs/root/claude:860:81025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-29T05:57:48.821Z"},{"error":"TypeError: (B.default||B) is not a function. (In '(B.default||B)(R)', '(B.default||B)' is an instance of Object)\n    at MGR 

Note: Error logs were truncated.

View original on GitHub ↗

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