[Bug] Anthropic API Error: Image media type mismatch for Android emulator snapshots
Bug Description
Every time I create a snapshot of the emulator from Android Studio and pass it to Claude Code in Terminal (inside of Cursor), it always returns the error and the conversation cannot be resumed. Before you jump into fixing this bug, I want to thank you for developing Opus 4.5. I didn't write code for 20 years, and now I can improve my app on my own. Just in one week I did a job of a highly professional senior developer which will normally take like 10 weeks if coding without AI.And here's the error message:
⎿ [Image #7]
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.8.content.3.image.source.base64.data: Image does not match the provided media type
image/png"},"request_id":"req_011CXKSocR6UG9Aq5BLQBYxr"}
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 2.1.1
- Feedback ID: fc0fa545-c10b-49c7-8569-76f9a0bdce1d
Errors
[{"error":"Error: 1: Command failed with ENOENT: cursor --force --install-extension anthropic.claude-code\nspawn cursor ENOENT \n at Km5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2192:3956)\n at async Im5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2192:1579)","timestamp":"2026-01-20T22:03:30.020Z"},{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:759:27)\n at AbortSignal.onAbortListener (node:child_process:829:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n at AbortSignal.dispatchEvent (node:internal/event_target:762:26)\n at runAbort (node:internal/abort_controller:488:10)\n at abortSignal (node:internal/abort_controller:459:3)\n at AbortController.abort (node:internal/abort_controller:507:5)\n at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4882:2171)\n at listOnTimeout (node:internal/timers:608:17)\n at process.processTimers (node:internal/timers:543:7)","timestamp":"2026-01-20T22:04:28.889Z"},{"error":"Error: Request was aborted.\n at BP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:928:3940)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-01-20T22:19:20.119Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.8.content.3.image.source.base64.data: Image does not match the provided media type image/png\"},\"request_id\":\"req_011CXKSocR6UG9Aq5BLQBYxr\"}\n at Y9.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:492:33583)\n at BP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:928:2195)\n at BP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:928:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async KD9.l31.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4551:6343)\n at async l31 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1077:36451)\n at async KD9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4551:6497)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4549:3748\n at async A70 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1562:1998)\n at async jDA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4549:3718)","timestamp":"2026-01-20T22:48:49.029Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.8.content.3.image.source.base64.data: Image does not match the provided media type image/png\"},\"request_id\":\"req_011CXKSqLuFhhkqBXFqQCfQX\"}\n at Y9.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:492:33583)\n at BP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:928:2195)\n at BP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:928:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async KD9.l31.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4551:6343)\n at async l31 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1077:36451)\n at async KD9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4551:6497)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4549:3748\n at async A70 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1562:1998)\n at async jDA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4549:3718)","timestamp":"2026-01-20T22:49:12.752Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗