Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SauceLabs ECONNREFUSED #466

Closed
AnandVishnu opened this issue Jan 28, 2014 · 3 comments
Closed

SauceLabs ECONNREFUSED #466

AnandVishnu opened this issue Jan 28, 2014 · 3 comments

Comments

@AnandVishnu
Copy link

I created a sauce labs account and used this in exports.config

exports.config = {
    .
    .
    sauceUser: 'anandv',
    sauceKey : 'f1af024a-f8e0-42e0-8adf-2a09275aacaf'
}

When I try to run the end to end test, I get a error

Error: ECONNREFUSED connect ECONNREFUSED.

I had recieved a similar error when I was trying to install protractor using npm. Since I work behind a proxy, I had to update the proxy config for the npm by following

npm config set proxy http://winUserName:winPass@proxy.company.com:8080

I think this the same issue I am getting here, because its trying to start selenium Server at the following location

Using SauceLabs selenium server at http://anandv:f1af024a-f8e0-42e0-8adf-2a09275aacaf@ondemand.saucelabs.com:80/wd/hub

Full error log

Error: ECONNREFUSED connect ECONNREFUSED
    at ClientRequest.<anonymous> (C:\Users\anandv\AppData\Roaming\npm\node_modul
es\protractor\node_modules\selenium-webdriver\http\index.js:127:16)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at Socket.socketErrorListener (http.js:1548:9)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:441:14
    at process._tickCallback (node.js:415:13)
==== async task ====
WebDriver.createSession()
    at Function.webdriver.WebDriver.acquireSession_ (C:\Users\anandv\AppData\Roa
ming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\w
ebdriver.js:131:49)
    at Function.webdriver.WebDriver.createSession (C:\Users\anandv\AppData\Roami
ng\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\web
driver.js:111:30)
    at Builder.build (C:\Users\anandv\AppData\Roaming\npm\node_modules\protracto
r\node_modules\selenium-webdriver\builder.js:105:20)
    at runTests (C:\Users\anandv\AppData\Roaming\npm\node_modules\protractor\lib
\runner.js:246:47)
    at C:\Users\anandv\AppData\Roaming\npm\node_modules\protractor\lib\runner.js
:368:12
    at C:\Users\anandv\AppData\Roaming\npm\node_modules\protractor\node_modules\
selenium-webdriver\lib\goog\base.js:1178:15
    at webdriver.promise.ControlFlow.runInNewFrame_ (C:\Users\anandv\AppData\Roa
ming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\p
romise.js:1445:20)
    at notify (C:\Users\anandv\AppData\Roaming\npm\node_modules\protractor\node_
modules\selenium-webdriver\lib\webdriver\promise.js:328:12)
    at then (C:\Users\anandv\AppData\Roaming\npm\node_modules\protractor\node_mo
dules\selenium-webdriver\lib\webdriver\promise.js:377:7)

@cbchouinard
Copy link

Check out this issue about setting up a proxy: #124

@juliemr
Copy link
Member

juliemr commented Apr 4, 2014

@AnandVishnu Did that fix it?

@AnandVishnu
Copy link
Author

Yes that fixed the issue. Marking it close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants