Skip to content
MikeKlemarewski edited this page Jun 19, 2012 · 1 revision

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

This happens when you create an http request using the http.request method and append the scheme to the front of your host variable in the options you pass in. eg. ('http://localhost' should just be 'localhost') See stackoverflow