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

Error: getaddrinfo ENOTFOUND www.google.com #2

Closed
essaji opened this issue Oct 3, 2015 · 2 comments
Closed

Error: getaddrinfo ENOTFOUND www.google.com #2

essaji opened this issue Oct 3, 2015 · 2 comments

Comments

@essaji
Copy link

essaji commented Oct 3, 2015

I am getting this error while trying to execute on node

    if(error) throw error;
                    ^
   Error: getaddrinfo ENOTFOUND www.google.com
   at errnoException (dns.js:44:10)
   at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)

here is my piece of code

var scraper = require('./node_modules/google-search-scraper');
var options = {
query: 'Nodejs',
limit: 10
}
scraper.search(options, function(error,url){
if(error) throw error;
console.log(url);
});
@thibauts
Copy link
Owner

thibauts commented Oct 3, 2015

Looks like your local DNS client can't resolve google ;)

@thibauts thibauts closed this as completed Oct 3, 2015
@essaji
Copy link
Author

essaji commented Oct 4, 2015

why not? is there any solution? by the way I am behind a proxy which I have already set in environment variables. Do I need to set proxy somewhere else as well? I appreciate your help.

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