Skip to content

[Bug]: New Microsoft.Playwright version 1.58 install fails with node and self-signed cert error #3281

@kodaren

Description

@kodaren

Version

1.58

Steps to reproduce

I updated my .Net 8 console project to Microsoft.Playwright NuGet package 1.58.0 from 1.55.0.
Ran the "./playwright.ps1 install" and also "./playwright.ps1 install chromium" with same result, i.e. got a node and self-signed certificate error when downloading and the install failed.

I reverted to Microsoft.Playwright NuGet package 1.55.0 and then removed the binaries. Ran install again and it downloaded the browser and installed properly.

Expected behavior

It downloads the browser and install properly.

Actual behavior

Install fails during download of browser with a node and self-signed certificate error. See output below:

Downloading Chrome for Testing 145.0.7632.6 (playwright chromium v1208) from https://cdn.playwright.dev/builds/cft/145.0.7632.6/win64/chrome-win64.zip
(node:35908) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.
(Use node --trace-deprecation ... to show where the warning was created)
Error: self-signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1649:34)
at TLSSocket.emit (node:events:508:28)
at TLSSocket._finishInit (node:_tls_wrap:1094:8)
at ssl.onhandshakedone (node:_tls_wrap:880:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}

Additional context

No response

Environment

- Operating System: Windows 11 (10.0.26100.7840)
- CPU: AMD RYZEN AI MAX+ PRO 395 w/ Radeon 8060S
- Browser: All, Chromium
- .NET Version (TFM): net8.0
- Other info: Console project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions