phantombuster / nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
https://nickjs.org
ISC License
501 stars 48 forks source link

getaddrinfo ENOTFOUND #6

Closed chenhm123 closed 7 years ago

chenhm123 commented 7 years ago

hi , when i run the demo, it appears Error: getaddrinfo ENOTFOUND localhost undefined:9222

paps commented 7 years ago

Can you please describe with more detail the steps needed to trigger this error?

chenhm123 commented 7 years ago

well.when i run the demo in the company ,the console appears Something went wrong: could not connect to chrome debugger after 40 tries (10s): Error: getaddrinfo ENOTFOUND localhost undefined:9222 then i think it's port(9222) needs add 'sudo' to execute.but it doesn't work.. it appears Something went wrong: could not start chrome: Error: spawn google-chrome-unstable ENOENT

however , i run it at home , it works well now maybe something wrong with network

chenhm123 commented 7 years ago

sorry..my english is very poor i want to set up a automate test platform, i had use phantomjs-node complete a little of work, but it's very unusefulness .. today i find casperjs and your nickjs ,,i think nickjs is friendlier

paps commented 7 years ago

Ok thanks. I think the problem might come from your CHROME_PATH environment variable. You have to set this to the exact path of your Google Chrome binary, for example something like /Applications/Google Chrome.app/Contents/MacOS/Google Chrome if you're using macOS.

chenhm123 commented 7 years ago

no, no ~ i find the problem today, because my mac uses Cable adapter for network, i think it change the ip, result in the server go wrong