protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Error when updating webdriver - unable to get local issuer certificate

Open el-davo opened this issue 10 years ago • 13 comments

  • Node Version: 5.12.0
  • Protractor Version: 4.0.0
  • Operating System and Version: Windows 7 Enterprise

We get an error when updating webdriver with command

node ./node_modules/protractor/bin/webdriver-manager update --ignore_ssl=true

error

events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: unable to get local issuer certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1065:38)
    at emitNone (events.js:80:13)
    at TLSSocket.emit (events.js:179:7)
    at TLSSocket._init.ssl.onclienthello.ssl.oncertcb.TLSSocket._finishInit (_tls_wrap.js:593:8)
    at TLSWrap.ssl.onclienthello.ssl.oncertcb.ssl.onnewsession.ssl.onhandshakedone (_tls_wrap.js:425:38)

Any help appreciated

el-davo avatar Aug 08 '16 09:08 el-davo

I'm not able to reproduce this on a Windows 7 VM Running 4.0.0. Can you provide some more details on your networking setup? Why are you using --ignore_ssl if you are not using a proxy or a cdn?

NickTomlin avatar Aug 08 '16 23:08 NickTomlin

I am tried this out and was unable to reproduce this. I'm curious too if there is a proxy or an alternative download site that is being used that is causing this error. Please provide more information.

cnishina avatar Aug 08 '16 23:08 cnishina

I had this error before, and this is something related to proxy after adding a --proxy command line args it worked fine.

manoj9788 avatar Aug 09 '16 01:08 manoj9788

The same command was working for months unti about a week ago when we changed from 3 version to 4 and we never had the need to proxy anything. This is a big company and i dont have control of the network, but i can look into any recent changes, Thanks

el-davo avatar Aug 09 '16 08:08 el-davo

Just tried it again today. The command is now working. I guess it could have been an issue with the network in our organization. Please feel free to close this

el-davo avatar Aug 10 '16 14:08 el-davo

@el-davo Glad it's sorted. Thanks for letting us know!

NickTomlin avatar Aug 10 '16 14:08 NickTomlin

@NickTomlin, i am having the same issue, when i am using it in the Companies network. Do you know specific links that is webdriver-manager is trying to access? Is there any way to start the webdriver-manager without sending any requests over the network?

MaximVer avatar Apr 05 '17 19:04 MaximVer

Had the same issue on MAX OSX -- adding the --ignore_ssl=true fixed it for me.

kimtuck avatar Apr 21 '17 14:04 kimtuck

I am also facing the same issue, i cannot modify the network...Can anyone provide any solution to me?

postmeback avatar Mar 06 '18 07:03 postmeback

untitled

postmeback avatar Mar 06 '18 07:03 postmeback

I did this

Call ./node_modules/.bin/webdriver-manager update --ignore_ssl inside the project repo and after that: ng e2e works.

Source: https://github.com/angular/angular-cli/issues/7690

postmeback avatar Mar 07 '18 14:03 postmeback

Thanks @kimtuck After adding the --ignore_ssl=true it worked.

Umesh2Patel avatar Sep 12 '18 17:09 Umesh2Patel

webdriver-manager start --ignore_ssl

Should work.

skAutomation12 avatar Dec 10 '18 22:12 skAutomation12