New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page.screenshot()
rejects when slowMo >= 1000 and https cert is self-signed even with ignoreHTTPSErrors
#563
Comments
Looks like the page crashed. I cannot repro this though - would you mind creating a minimalistic repro that I'd be able to run? Also, running with const browser = await puppeteer.launch({
ignoreHTTPSErrors: true,
dumpio: true,
headless: false
}); |
What makes you think that the page crashed? I'm new at this so I don't know how to read the errors yet. I added
That
to
Then the screenshot file got created 👍 !!! But the Promise rejection errors remain the same 👎 It turns out that the screenshot gets created whether I set Here's a stripped down version that gives me the same errors. https://github.com/jessehattabaugh/puppeteer-issue Run I'm using Mac OS 10.12 and Node 8.4.0 |
Oh, and if you want to see how it works without https, just change this line https://github.com/jessehattabaugh/puppeteer-issue/blob/master/webpack.config.js#L15 |
The only place I see this error mentioned is this line https://github.com/GoogleChrome/puppeteer/blob/64124df62f4e81999fe1a0ab45c6fb9718a0e413/lib/Page.js#L153 It's preceeded by |
page.screenshot()
rejects when https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 0 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 0 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 650 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 650 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 1000 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo > 1000 and https cert is self-signed even with ignoreHTTPSErrors
page.screenshot()
rejects when slowMo >= 1000 and https cert is self-signed even with ignoreHTTPSErrors
So I retested the change I made yesterday and it doesn't seem to work anymore. Feels like I never get the same result twice. However, the issue at hand is still occurring in the example repo. I discovered an important quirk; if you set Tangentially, if you set I updated the title, description, and the example repo to reflect this new info. |
@aslushnikov have you had a chance to checkout my example repo? |
I can confirm that I see the unhandled |
@jessehattabaugh I didn't figure what to do with your example repository. I'd appreciate if there's a nicer repro, or a step-by-step guide that will help me to reproduce the issue. Puppeteer v1.0.0 got released recently. Can you please check that the issue still reproes there? |
@aslushnikov just |
In certain cases, all callbacks could be rejected before we get a response from transport. This is easily reproducible with `slowMo` option. Fixes puppeteer#563.
I have a
webpack-dev-server
setup that uses https with a self-signed cert. I setignoreHTTPSErrors: true
when I create the Browser instance, and the page loads no problem. But when I try to take a screenshot I get anunhandled promise rejection
error. It's strange because I make the call topage.screenshot()
in a try/catch, but for some reason the rejection doesn't get caught.The text was updated successfully, but these errors were encountered: