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

ChromeLauncher:error connect ECONNREFUSED 127.0.0.1:xxxxx #2661

Closed
LoeiFy opened this issue Jul 9, 2017 · 1 comment
Closed

ChromeLauncher:error connect ECONNREFUSED 127.0.0.1:xxxxx #2661

LoeiFy opened this issue Jul 9, 2017 · 1 comment

Comments

@LoeiFy
Copy link

LoeiFy commented Jul 9, 2017

update: it works with --headless on terminal, but it still error with ChromeLauncher

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --remote-debugging-port=9222

when set the chromeFlags --headless, it throw the error.

but it works without --headless flag

the error

  ChromeLauncher Waiting for browser. +0ms
  ChromeLauncher Waiting for browser... +3ms
  ChromeLauncher Waiting for browser..... +521ms
  ChromeLauncher Waiting for browser....... +508ms
  ChromeLauncher Waiting for browser......... +508ms
  ChromeLauncher Waiting for browser........... +507ms
  ChromeLauncher Waiting for browser............. +504ms
  ChromeLauncher Waiting for browser............... +507ms
  ChromeLauncher Waiting for browser................. +507ms
  ChromeLauncher Waiting for browser................... +506ms
  ChromeLauncher Waiting for browser..................... +506ms
  ChromeLauncher Waiting for browser....................... +507ms
  ChromeLauncher:error connect ECONNREFUSED 127.0.0.1:61163 +3ms
  ChromeLauncher:error Logging contents of /var/folders/4c/hq5_h4cn3sj96qqfy8r5xdl80000gn/T/lighthouse.XXXXXXX.ZVgoeUQa/chrome-err.log +1ms
  ChromeLauncher:error [0710/003554.844380:ERROR:headless_shell.cc(104)] Navigation to  failed
  ChromeLauncher:error  +0ms

the code

// "chrome-launcher": "^0.3.1"
const chromeLauncher = require('chrome-launcher')

function launchChrome() {
  return chromeLauncher.launch({
    chromeFlags: [
      '--window-size=800,600',
      '--disable-gpu',
      '--headless'
    ]
  })
}

launchChrome()

the os platform

macOS Sierra 10.12.3

Google Chrome / Version 59.0.3071.115 (Official Build) (64-bit)

@patrickhulce
Copy link
Collaborator

@LoeiFy does this still happen with the latest version of ChromeLauncher? If so, please file a bug in the new moved repository. Thanks!

https://github.com/GoogleChrome/chrome-launcher

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