0
votes

I followed the instruction of how to install protractor. While executing webdriver-manager update, i am getting this kind of issue.

events.js:183
throw er; // Unhandled  'error' event
Error: read ECONRESET
at _ernoException<util.js:1022:11>
at TLSWrap.onread (net.js:628:25)

I am behind a corporate proxy. Can somebody help on this?

1
Why downvoted my question?...it is legitimate question after all... - Arka
If you look up ECONRESET and node... "ECONNRESET (Connection reset by peer): A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or reboot. Commonly encountered via the http and net modules." This sounds like your environment has issues, probably the internet connectivity failed and you should retry. See nodejs.org/api/errors.html - cnishina
The internet is ok...but whenever i execute this command...i get this error...is there any other insight ? - Arka
Are you behind a corp firewall / proxy? - cnishina
Yes... i am behind a corporate firewall - Arka

1 Answers

1
votes

If your network behind proxy, you need to tell webdriver-manager your proxy.

Option 1) Specify proxy in webdriver-manager CLI

webdriver-manager update --proxy <your proxy>

In this way, you have to specify proxy every time when execute webdrvier-manager start or update

Option 2) Add proxy setting in Environment Variable

HTTP_PROXY=<your proxy> 
HTTPS_PROXY=<your proxy> 
NO_PROXY=localhost, 127.0.0.1, .yourcompany.com 

By this approach, no need to specify proxy in webdriver-manager CLI. However retry in new CMD window opened after adding proxy Environment Variables.