claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Playwright Screenshot: Persistent API Error for Large Image Dimensions

Open VRspace4 opened this issue 4 months ago • 4 comments

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.

VRspace4 avatar Oct 07 '25 01:10 VRspace4