Closed amittendulkar closed 1 year ago
I also installed the certs in the Trusted Root Certification Authorities store, but still got the same error. I greatly appreciate all your tips and help on this issue even though it did not work for me, but I have some good news on manually installing the browser...
At some point I tried running playwright codegen to see if it worked, and saw the path where it expected to find chrome.exe in the error message:
I downloaded the zip file from the certificate error and saw it contained the chrome-win folder, which was in the path for the playwright codegen command:
I was just missing the chromium-1117 folder, so I created it and pasted the chrome-win folder from the zip file into it. When I ran playwright codegen it worked! I do not know if this will create other issues down the road, but it gets me going for now. I hope this helps others who could not fix the certificate error in any other way.
The solution is only for Python, because when I tried to run gc d:\root.crt | ac d:\cacert.pem, it was throwing gc not found error. I am looking for a solution in js env.
"playwright install" command fails with UNABLE_TO_GET_ISSUER_CERT_LOCALLY error
I am using Windows 11 with Python 3.8.10
Here is the trace.
I found out that this error comes because my company has installed Zscaler on my laptop which is presenting its own certificate when browsed the Microsoft CDN website,
I imported the root and intermediate certificates to the cacert.pem file as mentioned in the below URL. https://community.zscaler.com/t/installing-tls-ssl-root-certificates-to-non-standard-environments/7261
Specifically I used the below commands,
Still I got the same errors.
Then I referred to https://playwright.dev/docs/browsers#install-behind-a-firewall-or-a-proxy to understand that I might need to set a proxy.
By logging in to ip.zscaler.net I got the following details,
When I set the proxy like this and tried installing the browsers, I got the below error,
Any pointers?