Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Protocol error (Page.captureScreenshot) tells you that Puppeteer’s screenshot command failed; it does not identify the underlying cause. Start with the complete error suffix and stack trace, then compare a normal-viewport capture with the failing capture while checking page/browser lifecycle and browser logs. Large captures, a closed target, and browser or version-specific problems have all appeared in reports, but no single fix or universal capture-size limit is established.
What the error means
Puppeteer’s documented page-capture method is Page.screenshot(). It returns image data and accepts options such as fullPage, clip, captureBeyondViewport, output type, and output path. The protocol error identifies the capture operation that failed, not why it failed. Read the full message, especially anything after Page.captureScreenshot, and preserve the stack trace. Puppeteer Page.screenshot() API
There is no documented universal screenshot dimension limit in the cited API material. Historical issues describe failures and partial output during large captures, and a separate historical report includes “Target closed”; those reports are examples tied to particular environments, not proof of the cause in another installation. Issue #5341 · Issue #5530 · Issue #1385
Collect the details that narrow the cause
Before changing launch flags or increasing resources, record a reproducible capture description. Puppeteer’s API is versioned, and the issue reports describe specific environments, so version and capture details matter.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
- Complete error text and stack trace, including the suffix after
Page.captureScreenshot. - Puppeteer version, browser product and version, operating system or container image.
- Viewport width and height; whether
fullPageis enabled; anycliprectangle; image type and output path. - Whether other work is running concurrently and the order of screenshot, page, context, and browser close operations.
- Browser stderr or other available browser logs, and whether the page and browser remain alive after the failure.
Isolate capture size and options
- Reproduce the failure using the same page and environment, changing only the capture area.
- Try the ordinary viewport rather than
fullPage: true. Puppeteer documentsfullPageas false by default. ScreenshotOptions API - If you need a larger page, try a smaller
cliprectangle, then expand it in controlled increments. Compare the output and logs at each step. - Keep other options constant, including format and viewport. Change one variable at a time so a passing capture tells you which change mattered.
This is a diagnostic comparison, not a guaranteed workaround. Large-page issue reports include tile-memory warnings and incomplete or clipped output, but they do not establish a general threshold or prove that memory is the cause of every protocol error. Puppeteer issue #5530
Check lifecycle ordering
Look for cleanup that may race with the capture: a page, its BrowserContext, or the browser being closed while screenshot work is in progress. The current Page.screenshot() API notes that BrowserContext.newPage(), Browser.newPage(), and Page.close() in a BrowserContext wait for a screenshot to finish. It also notes that Page.bringToFront() does not wait. That coordination is useful, but it does not cover every external cleanup path or process shutdown. Page.screenshot() remarks
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Make the screenshot operation finish before your own code closes its context or browser, and check whether a worker, timeout handler, or error cleanup path can close them independently. If the full error says “Target closed,” treat that as evidence to investigate target and browser lifecycle—not as a complete diagnosis. The historical issue reporting that suffix cannot establish the cause on your system. Puppeteer issue #1385
Common symptoms and sensible next checks
| Symptom | What it suggests | Next check |
|---|---|---|
Failure only with fullPage or a very large capture |
Capture area or output dimensions may be relevant; large-page failures and partial output appear in historical reports. | Compare viewport capture and smaller clip regions; retain browser logs. |
| “Target closed” in the full error | The target was reported closed during the operation; the text alone does not show which code path closed it or why. | Inspect page/context/browser cleanup ordering and confirm the browser remains alive. |
| Failure is inconsistent across runs | The error alone cannot distinguish lifecycle, browser failure, capture pressure, or a version-specific issue. | Record versions and options, reduce concurrency for a reproduction, and change one condition at a time. |
| Only one browser/runtime combination fails | The result may depend on the particular Puppeteer, browser, OS, or container combination. | Capture exact version and runtime details before comparing with issue reports or changing versions. |
Avoid treating issue workarounds as universal fixes
Participants in the tile-memory issue reported a launch argument that helped in their own context, but the discussion also describes differing circumstances. It is anecdotal, not an official recommendation for all Puppeteer screenshot errors. Do not add flags blindly: first reproduce with recorded versions, dimensions, and logs, then evaluate a proposed change in that same environment. Issue #5530 discussion
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Or skip the browser setup
If your goal is simply to obtain a screenshot rather than run Puppeteer yourself, ScreenshotNeo provides a website screenshot API and MCP server. A single GET request can return a screenshot or PDF; its API documentation is at ScreenshotNeo docs.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo accepts cookie/consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and each response reports the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account.
Sources and scope
The current Puppeteer API references cited here show version 25.12.0 in the supplied documentation results. The linked GitHub issues are historical reports opened in 2017 and 2020; they illustrate possible symptoms but do not establish current prevalence, a universal cause, or a maximum capture size. For Puppeteer’s general capture workflow, see its Screenshots guide.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Frequently Asked Questions
Is there one fix for “Protocol error (Page.captureScreenshot)”?
No single fix is established. The message identifies the failing capture command, so diagnose it using the complete error, capture options, lifecycle ordering, environment, and browser logs.
Does Puppeteer document a maximum full-page screenshot size?
The cited API documentation and issue reports do not establish a universal maximum. Large-capture reports describe particular cases, not a general limit.
Quick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

