-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[BUG] ignoreHTTPSErrors not working on page.request #9768
Comments
@Skombini can you share a repro? I tried with the snippet below and it passed on node v14.18.1: test('should support ignoreHTTPSErrors option', async ({ page }) => {
const response = await page.request.get('https://expired.badssl.com/', {
ignoreHTTPSErrors: true
});
expect(response.status()).toBe(200);
}); Can you run with |
Sorry @yury-s it's an internal website I'm not comfortable in sharing, and also behind a VPN. Which makes it a pain I know. Anyway here's the logs you asked for, it seems that the Post request works - in getting a redirect response - but then fails for some reason. :'(
|
Thanks for the log, the problem is with the redirects. I'll send a fix. |
This one is merged and cherry-picked to 1.16 |
Closed meaning issued fixsed?
…On Tue, Oct 26, 2021, 11:22 PM Andrey Lushnikov ***@***.***> wrote:
Closed #9768 <#9768>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9768 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWDFUER6MR52XNWHIOX3OZLUI6LEDANCNFSM5GWSD4TQ>
.
|
Yes, it is fixed ans is going to be available in 1.16.2 |
Context:
System:
Binaries:
Languages:
npmPackages:
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
This is performed locally, on a https website. When I perform the above post request, I'm getting the error
fetchRequest.post: Error: certificate has expired
. Performing the same request using SuperTest runs with no problems. Though in the response it does denote that the cert has expired:However, I would have thought this would be ignored if using
ignoreHTTPSErrors: true
.The text was updated successfully, but these errors were encountered: