protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Unable to run webdriver-manager-update

Open samshaikh87 opened this issue 9 years ago • 11 comments

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. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)

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. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)

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)

samshaikh87 avatar May 02 '17 20:05 samshaikh87

Node Version: 6.10.2 Protractor Version: 5.1.1 Operating System and Version `` windows 7

samshaikh87 avatar May 02 '17 20:05 samshaikh87

I faced the same issue and you can run the following as a workaround:

npm cache clean
webdriver-manager update --ignore_ssl

bobbai avatar May 03 '17 02:05 bobbai

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.

NickTomlin avatar May 04 '17 02:05 NickTomlin

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?

JimLynchCodes avatar Jan 31 '18 20:01 JimLynchCodes

@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!!

MikePot avatar Oct 23 '18 14:10 MikePot

If you are behind a proxy, pls use webdriver-manager update --proxy (i.e, webdriver-manager update --proxy http://proxy....)

The same applies for webdriver start as well.

ashishbansali avatar Oct 23 '18 18:10 ashishbansali

@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

MikePot avatar Oct 23 '18 23:10 MikePot

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.

ashishbansali avatar Oct 24 '18 14:10 ashishbansali

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.

MikePot avatar Oct 24 '18 15:10 MikePot

@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.

2018-10-26_13-24-47.pdf

MikePot avatar Oct 26 '18 18:10 MikePot

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?

MikePot avatar Nov 09 '18 14:11 MikePot