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

Cannot connect to browser ECONNREFUSED #1

Open
amite opened this issue Aug 17, 2017 · 2 comments
Open

Cannot connect to browser ECONNREFUSED #1

amite opened this issue Aug 17, 2017 · 2 comments

Comments

@amite
Copy link

amite commented Aug 17, 2017

When I try the base case example provided in the README with hacker news, here is the error I get back in my console:

Cannot connect to browser: { Error: connect ECONNREFUSED 127.0.0.1:9222
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1136:14)
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 9222 }
GET /api/scrape?url=https://news.ycombinator.com&selector=.title+a 400 41.008 ms - 110
@hishamhaniffa
Copy link

hishamhaniffa commented Aug 18, 2017

same issue

UPDATE:

I was able to get this script work by installing Google Chrome Canary and running it as a headless browser.

@tomsoderlund
Copy link
Member

@amite @hishamhaniffa I'm running regular Google Chrome 61.0.3163.100 on a Mac.

Did you use the --headless option as specified in README?

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