Unable to run webdriver-manager-update
Hi there!
Getting the below error when running webdriver-manager update...
C:\Users\pctr294290>webdriver-manager update events.js:160 throw er; // Unhandled 'error' event ^
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.
Please help.
Bug report
- Node Version: ``
- Protractor Version: ``
- Angular Version: ``
- Browser(s): ``
- Operating System and Version ``
- Your protractor configuration file
- A relevant example test
- Output from running the test
- Steps to reproduce the bug
- The URL you are running your tests against (if relevant)
Feature Request
- Reasons for adopting new feature
- Is this a breaking change? (How will this affect existing functionality) Hi there!
Getting the below error when running webdriver-manager update...
C:\Users\pctr294290>webdriver-manager update events.js:160 throw er; // Unhandled 'error' event ^
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.
Please help.
Bug report
- Node Version: ``
- Protractor Version: ``
- Angular Version: ``
- Browser(s): ``
- Operating System and Version ``
- Your protractor configuration file
- A relevant example test
- Output from running the test
- Steps to reproduce the bug
- The URL you are running your tests against (if relevant)
Feature Request
- Reasons for adopting new feature
- Is this a breaking change? (How will this affect existing functionality)
Node Version: 6.10.2
Protractor Version: 5.1.1
Operating System and Version `` windows 7
I faced the same issue and you can run the following as a workaround:
npm cache clean
webdriver-manager update --ignore_ssl
This is typically due to a proxy or other networking layer that is sitting between you and the servers hosting the browser binaries. @bobbai's solution should work but the underlying issue is a networking one.
I'm going to go ahead and close this as it isn't an issue with webdriver-manager itself.
I too am behind a corporate firewall and am getting this error message. The suggested commands @bobbai suggested are not working. Is there anything else I can do or shall I open a new issue?
@JimTheMan Same here, I can't do webdriver-manager update, but I tried to copied all the files needed, and 'webdriver-manager start' does get run; then when I tried to run the first Protractor test (copied from the tutorial page), it doesn't get the page displayed on the chrome browser. Anyone can provide any help, it will be highly appreciated!!
If you are behind a proxy, pls use webdriver-manager update --proxy
The same applies for webdriver start as well.
@ashishbansali Thank you so much, I tried that. And received an unhandled error. Do you have any guess?
events.js:167 throw er; // Unhandled 'error' event ^
Error: getaddrinfo ENOTFOUND userID userID:443
Ensure you follow below steps:
1.Install Node JS and acquire read/write access to the corresponding folder. 2.Navigate to NPM folder and execute below commands via cmd
npm config set proxy (ur proxy address) npm config set registry http://registry.npmjs.org/ npm config set http_proxy=(ur proxy address) npm config set https_proxy=(ur proxy address)
3.Install protractor npm install i protractor
4.webdriver-manager clean 5.webdriver-manager shutdown 6.webdriver-manager update --proxy (ur proxy address) 7.webdriver-manager start --proxy (ur proxy address)
This should work just fine.
Thank you so much!! I still have the same error, see below. Do you know if this is caused by the proxy may be not correct?
Sent from my iPhone
On Oct 24, 2018, at 10:27 AM, ashishbansali [email protected] wrote:
Ensure you follow below steps:
1.Install Node JS and acquire read/write access to the corresponding folder. 2.Navigate to NPM folder and execute below commands via cmd
npm config set proxy npm config set registry http://registry.npmjs.org/ npm config set http_proxy= npm config set https_proxy=
3.Install protractor npm install i protractor
4.webdriver-manager clean 5.webdriver-manager shutdown 6.webdriver-manager update --proxy 7.webdriver-manager start --proxy
This should work just fine.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@ashishbansali Sorry to bug you, here is the response after running 'webdriver-manager update --proxy --ignore_ssl', the screen capture I sent you was not displayed, so I attached it here as a file.
I have added proxy and proxy sees traffic to the registry http://registry.npmjs.org/. But there are traffic to other IPs such as 192.30.1254.16:443, could the code be updated to going to the registry place for all traffic? @ashishbansali , do you know if this is a known issue to people who work behind the corporate firewall?