Error: getaddrinfo ENOTFOUND iZ94st1428jZ iZ94st1428jZ:4150
See original GitHub issuecurl ok
$ curl -d "ssssgfsadfgsdfsdfsfgddsf" "http://120.24.210.90:4151/put?topic=test"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26 100 2 100 24 25 307 --:--:-- --:--:-- --:--:-- 307OK
run error
$ node .
events.js:141
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND iZ94st1428jZ iZ94st1428jZ:4150
at errnoException (dns.js:26:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
code
var nsq = require('nsqjs');
var reader = new nsq.Reader('topic', 'test', {
lookupdHTTPAddresses: '120.24.210.90:4161'
});
reader.connect();
reader.on('message', function (msg) {
console.log('Received message [%s]: %s', msg.id, msg.body.toString());
msg.finish();
});
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error: getaddrinfo ENOTFOUND in nodejs for get call
getaddrinfo ENOTFOUND means client was not able to connect to given address. Please try specifying host without http: var optionsget = { host...
Read more >Node.js Error Message “getaddrinfo ENOTFOUND localhost ...
If you try to run your JSON server and see this error message “getaddrinfo ENOTFOUND localhost,” it's happening because Webpack cannot find your...
Read more >Mongodb remote database connectivity error - getaddrinfo ...
I am getting following error: getaddrinfo ENOTFOUND mycluster-u8ha7.mongodb.net. Can someone pls guide me how to troubleshoot and make this ...
Read more >Host(s) Unable to Connect to Management Plane With "Error
Host(s) Unable to Connect to Management Plane With "Error: getaddrinfo ENOTFOUND. Problem. Host(s) are unable to remain online from the Management Plane's ...
Read more >Encountering Error: getaddrinfo ENOTFOUND undefine...
Encountering Error: getaddrinfo ENOTFOUND undefined undefined:443 while configuring Excel Report Add-On for ArcGIS Monitor.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to use the
--broadcast-address=127.0.0.1
option on nsqd. What’s happening is that nsqlookupd is telling nsqjs to connect tonsqd:4150
which means nothing to a client running on your host machine. Obviously, once you dockerize the NodeJS process, then you’ll want to remove the--broadcast-address
Thank you, it solved my problem!