[Bug] Anthropic API Error: Image does not match provided media type in Puppeteer screenshots
Resolved 💬 3 comments Opened Nov 21, 2025 by abhichandra21 Closed Nov 24, 2025
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.cont
ent.27.image.source.base64.data: Image does not match the provided media type
That error keeps happening in claude code when puppeteer tryies to run and fails
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.47
- Feedback ID: cd51b16e-ec5a-451f-b4c2-672c0bef0f25
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/abhishekchandra/.local/share/claude/versions/2.0.47 (expected in multi-process scenarios)\n at k20 (/$bunfs/root/claude:2532:1514)\n at VGA (/$bunfs/root/claude:2532:1192)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-21T01:29:13.973Z"},{"error":"Error: Tool mcp__puppeteer__puppeteer_navigate not found\n at HjB (/$bunfs/root/claude:1342:507)\n at V7 (/$bunfs/root/claude:102:19666)\n at XI (/$bunfs/root/claude:104:42843)\n at rh (/$bunfs/root/claude:104:38376)\n at TD (/$bunfs/root/claude:104:38304)\n at hq (/$bunfs/root/claude:104:38158)\n at nh (/$bunfs/root/claude:104:35233)\n at L0 (/$bunfs/root/claude:102:4818)\n at f6 (/$bunfs/root/claude:104:32479)\n at G2R (/$bunfs/root/claude:102:25183)","timestamp":"2025-11-21T01:29:28.495Z"},{"error":"Error: Tool mcp__puppeteer__puppeteer_screenshot not found\n at HjB (/$bunfs/root/claude:1342:507)\n at V7 (/$bunfs/root/claude:102:19666)\n at XI (/$bunfs/root/claude:104:42843)\n at rh (/$bunfs/root/claude:104:38376)\n at TD (/$bunfs/root/claude:104:38304)\n at hq (/$bunfs/root/claude:104:38158)\n at nh (/$bunfs/root/claude:104:35233)\n at L0 (/$bunfs/root/claude:102:4818)\n at f6 (/$bunfs/root/claude:104:32479)\n at G2R (/$bunfs/root/claude:102:25183)","timestamp":"2025-11-21T01:29:28.496Z"},{"error":"Error: Tool mcp__puppeteer__puppeteer_navigate not found\n at HjB (/$bunfs/root/claude:1342:507)\n at V7 (/$bunfs/root/claude:102:19666)\n at XI (/$bunfs/root/claude:104:42843)\n at rh (/$bunfs/root/claude:104:38376)\n at TD (/$bunfs/root/claude:104:38304)\n at hq (/$bunfs/root/claude:104:38158)\n at nh (/$bunfs/root/claude:104:35233)\n at L0 (/$bunfs/root/claude:102:4818)\n at f6 (/$bunfs/root/claude:104:32479)\n at G2R (/$bunfs/root/claude:102:25183)","timestamp":"2025-11-21T01:29:28.681Z"},{"error":"Error: Tool mcp__puppeteer__puppeteer_screenshot not found\n at HjB (/$bunfs/root/claude:1342:507)\n at V7 (/$bunfs/root/claude:102:19666)\n at XI (/$bunfs/root/claude:104:42843)\n at rh (/$bunfs/root/claude:104:38376)\n at TD (/$bunfs/root/claude:104:38304)\n at hq (/$bunfs/root/claude:104:38158)\n at nh (/$bunfs/root/claude:104:35233)\n at L0 (/$bunfs/root/claude:102:4818)\n at f6 (/$bunfs/root/claude:104:32479)\n at G2R (/$bunfs/root/claude:102:25183)","timestamp":"2025-11-21T01:29:28.682Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.1.content.27.image.source.base64.data: Image does not match the provided media type image/jpeg\"},\"request_id\":\"req_011CVLAiaeFTuua5SkEUowhX\"}\n at generate (/$bunfs/root/claude:390:20031)\n at makeRequest (/$bunfs/root/claude:732:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-21T01:29:32.032Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗