Friday, August 31, 2012

{ [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

You may get this error when you send request to any URL from nodejs,
Simply you can solve this error by doing following

1. Find out IP of url (which you try to access from your code)
2. Add that url and domain in your /etc/hosts as below
     111.111.111.111    example.com


Cheers !!

No comments:

Post a Comment

Contact Me for any help regarding rails/nodejs/php/mysql

Name

Email *

Message *