[Bug] Playwright Screenshot: Persistent API Error for Large Image Dimensions
Bug Description Claude Code used playwright mcp to take a screenshot of a webpage but the image dimensions exceeded the max allowed size. I told Claude that it's fine and just skip it, but it keeps attempting to take the screenshot and keeps erroring out.
● Read(.playwright-mcp/20251006_181148_back-at-test-results.png) ⎿ Read image (999.5KB) ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrwyzRZZ7DUbv8r9zmpk"}
if there isn't anything you can do about this api error, then continue:
Read(.playwright-mcp/20251006_181148_back-at-test-results.png) ⎿ Read image (999.5KB) ⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrwyzRZZ7DUbv8r9zmpk"} ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrxE4RoiptdutLFKLAZm"}
you can skip that screenshot, move on ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrxFh9hHxHvx4SEGxtag"}
skip it ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrxGtu9onjFFis3fzRvC"}
cancel it ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrxHtFzBnRLAWh6NoDNY"}
continue ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.17.content.10.image.source.base64.data: At least one of the image dimensions exceed max allowed size: 8000 pixels"},"request_id":"req_011CTrxKS3xPBSah93DvPz9p"}
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.0.9
- Feedback ID:
Errors
[{"error":"Error\n at CA (/$bunfs/root/claude:530:1074)\n at <anonymous> (/$bunfs/root/claude:531:9903)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at rh0 (/$bunfs/root/claude:545:1890)\n at oJ (/$bunfs/root/claude:545:4052)\n at <anonymous> (/$bunfs/root/claude:840:38038)\n at request (/$bunfs/root/claude:533:2088)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at rh0 (/$bunfs/root/claude:545:1890)\n at oJ (/$bunfs/root/claude:545:4052)\n at <anonymous> (/$bunfs/root/claude:840:38038)\n at W (/$bunfs/root/claude:528:13671)\n at eM (/$bunfs/root/claude:1743:7533)\n at Nn (/$bunfs/root/claude:1743:7665)","timestamp":"2025-10-06T23:59:35.073Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: james\n at <anonymous> (/$bunfs/root/claude:947:396)\n at useMemo (/$bunfs/root/claude:35:25923)\n at s7 (/$bunfs/root/claude:947:292)\n at W$ (/$bunfs/root/claude:35:19414)\n at Ig (/$bunfs/root/claude:37:42805)\n at S5 (/$bunfs/root/claude:37:38347)\n at zk (/$bunfs/root/claude:37:38275)\n at F$ (/$bunfs/root/claude:37:38129)\n at RI (/$bunfs/root/claude:37:35208)\n at n9 (/$bunfs/root/claude:35:4842)","timestamp":"2025-10-07T00:11:54.909Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: james\n at <anonymous> (/$bunfs/root/claude:947:396)\n at useMemo (/$bunfs/root/claude:35:25923)\n at s7 (/$bunfs/root/claude:947:292)\n at W$ (/$bunfs/root/claude:35:19414)\n at Ig (/$bunfs/root/claude:37:42805)\n at S5 (/$bunfs/root/claude:37:38347)\n at zk (/$bunfs/root/claude:37:38275)\n at F$ (/$bunfs/root/claude:37:38129)\n at RI (/%2
Note: Error logs were truncated.
any fix?
VSCode Claude Extension: Just piling on... same issue, was having one of the most productive 12 hour sessions , then I "bricked it" with a large screenshot. Deleted source file, restarted vscode, the conversation is stuck.
Also having this issue using playwright mcp - now I dont want to continue using it for fear of being in a long sessions and it breaking.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.