{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/5436","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/5436/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/5436/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/5436/events","html_url":"https://github.com/nodejs/node/issues/5436","id":136394028,"number":5436,"title":"http.get returns \"getaddrinfo ENOTFOUND\" error","user":{"login":"T94T","id":17198363,"avatar_url":"https://avatars.githubusercontent.com/u/17198363?v=3","gravatar_id":"","url":"https://api.github.com/users/T94T","html_url":"https://github.com/T94T","followers_url":"https://api.github.com/users/T94T/followers","following_url":"https://api.github.com/users/T94T/following{/other_user}","gists_url":"https://api.github.com/users/T94T/gists{/gist_id}","starred_url":"https://api.github.com/users/T94T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T94T/subscriptions","organizations_url":"https://api.github.com/users/T94T/orgs","repos_url":"https://api.github.com/users/T94T/repos","events_url":"https://api.github.com/users/T94T/events{/privacy}","received_events_url":"https://api.github.com/users/T94T/received_events","type":"User","site_admin":false},"labels":[{"id":155435740,"url":"https://api.github.com/repos/nodejs/node/labels/dns","name":"dns","color":"fbca04","default":false},{"id":155267422,"url":"https://api.github.com/repos/nodejs/node/labels/http","name":"http","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-02-25T13:57:35Z","updated_at":"2016-12-14T16:19:02Z","closed_at":"2016-02-27T13:41:42Z","body":"Hi all,\nI'm trying to fix following problem since five days.\nWhen I'm doing a\n- http.get(\"http://url/\", cb);\n\nor\n- http.get(options, cb);\n\nthere's this error coming back:\n\n```\nHTTP 5021: SOCKET ERROR: getaddrinfo ENOTFOUND _host_ _host_:80 Error: getaddrinfo ENOTFOUND _url_ _url_:80\n    at errnoException (dns.js:26:10)\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)\nGot error: getaddrinfo ENOTFOUND _host_ _host_:80\nNET 5021: destroy undefined\nNET 5021: destroy\nNET 5021: close\nNET 5021: close handle\nNET 5021: destroy\nNET 5021: already destroyed, fire error callbacks\nNET 5021: emit close\nHTTP 5021: CLIENT socket onClose\nHTTP 5021: removeSocket _host_:80: destroyed: true\nHTTP 5021: HTTP socket close\n```\n\nWhen doing a https request to google.com:\n`Got error: connect ENETUNREACH 2a00:1450:400a:806::1014:443 - Local (:::0)`\n\nI can definitely say it's NOT a DNS or a PROXY issue.\n\nWhat I testet so far:\n-     changed hosts file, so no dns lookup is required\n-     changed resolv.conf to use other DNS servers\n-     **curl and wget requests do work**\n-     **ping to destination host works**\n-     reinstalled complete system\n-     same node.js code works on a raspbian system\n\nnode.js sample code:\n\n```\nvar http = require('http');\nvar options = {\n  host: '_host_',\n  port: 80,\n  path: '/'\n};\n\nhttp.get(options, function(res) {\n  console.log(\"Got response: \" + res.statusCode);\n\n  res.on(\"data\", function(chunk) {\n    console.log(\"BODY: \" + chunk);\n  });\n}).on('error', function(e) {\n  console.log(\"Got error: \" + e.message);\n});\n```\n- **Version**: v5.5.0\n- **Platform**: Linux buildroot 4.1.15 armv6l (raspberrypi)\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/267078271","html_url":"https://github.com/nodejs/node/issues/5436#issuecomment-267078271","issue_url":"https://api.github.com/repos/nodejs/node/issues/5436","id":267078271,"user":{"login":"denghuiquan","id":5303970,"avatar_url":"https://avatars.githubusercontent.com/u/5303970?v=3","gravatar_id":"","url":"https://api.github.com/users/denghuiquan","html_url":"https://github.com/denghuiquan","followers_url":"https://api.github.com/users/denghuiquan/followers","following_url":"https://api.github.com/users/denghuiquan/following{/other_user}","gists_url":"https://api.github.com/users/denghuiquan/gists{/gist_id}","starred_url":"https://api.github.com/users/denghuiquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denghuiquan/subscriptions","organizations_url":"https://api.github.com/users/denghuiquan/orgs","repos_url":"https://api.github.com/users/denghuiquan/repos","events_url":"https://api.github.com/users/denghuiquan/events{/privacy}","received_events_url":"https://api.github.com/users/denghuiquan/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T16:19:02Z","updated_at":"2016-12-14T16:19:02Z","body":"specify an usable dns, normally the 8.8.8.8 for the dockerfile would help to this. @ArsalanDotMe"}}
{"actor":{"display_login":"denghuiquan"}}