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

Errors when running parallel_local or local configurations #32

Open
ligarcia10 opened this issue Jun 17, 2020 · 1 comment
Open

Errors when running parallel_local or local configurations #32

ligarcia10 opened this issue Jun 17, 2020 · 1 comment

Comments

@ligarcia10
Copy link

nightwatch-browserstack>npm run local

[email protected] local D:\repos\github\nightwatch-browserstack
node scripts/local.runner.js -c conf/local.conf.js

Connecting local

D:\repos\github\nightwatch-browserstack\scripts\local.runner.js:14
if (error) throw error;
^
LocalError
at D:\repos\github\nightwatch-browserstack\node_modules\browserstack-local\lib\Local.js:58:20
at ChildProcess.exithandler (child_process.js:285:7)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] local: node scripts/local.runner.js -c conf/local.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

nightwatch-browserstack>npm run parallel_local

[email protected] parallel_local D:\repos\github\nightwatch-browserstack
node scripts/local.runner.js -c conf/parallel_local.conf.js -e chrome,firefox,safari

Connecting local

D:\repos\github\nightwatch-browserstack\scripts\local.runner.js:14
if (error) throw error;
^
LocalError
at D:\repos\github\nightwatch-browserstack\node_modules\browserstack-local\lib\Local.js:58:20
at ChildProcess.exithandler (child_process.js:285:7)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] parallel_local: node scripts/local.runner.js -c conf/parallel_local.conf.js -e chrome,firefox,safari
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] parallel_local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@shawnlobo96
Copy link

Hey @ligarcia10,

The error you received was since the local testing binary did not start. This could happen if you are behind a proxy and the local testing binary was unable to connect to Browserstack's infrastructure.

Check with your network team if traffic to *.browserstack.com is whitelisted on ports 80 and 443 and WebSocket traffic is allowed to pass through?

Can you also manually run the binary on your machine and share the console output?

  1. Download the binary
    OS X (10.7 and above)
    Linux 32-bit
    Linux 64-bit
    Windows (XP and above)

  2. Run it in the terminal/cmd prompt
    Mac OS/ Linux:
    ./BrowserStackLocal --key <BROWSERSTACK_ACCESS_KEY>
    Windows:
    BrowserStackLocal.exe --key <BROWSERSTACK_ACCESS_KEY>

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

2 participants