From af986b5d4dfb79fb275a01905d4cfcc3a04aaf34 Mon Sep 17 00:00:00 2001 From: Andrew Kaspick Date: Wed, 11 Dec 2024 19:59:26 -0500 Subject: [PATCH] Add troubleshooting section to README regarding automatic HTTPS upgrades (#272) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ca95317..19c34ca 100644 --- a/README.md +++ b/README.md @@ -547,6 +547,9 @@ N.B. * The headless option disabled is not compatible with exporting of the PDF. * If showing the devtools, the browser will halt resulting in a navigation timeout +## Troubleshooting + +If you're generating files from a web server, starting with puppeteer version 22, chromium automatically upgrades all HTTP requests to HTTPS requests. If your server is only expecting HTTP requests then adding `launch_args: ['--disable-features=HttpsUpgrades']` will prevent the automatic protocol conversion from occurring. ## Contributing