Title: http.get returns "getaddrinfo ENOTFOUND" error · Issue #5436 · nodejs/node · GitHub
Open Graph Title: http.get returns "getaddrinfo ENOTFOUND" error · Issue #5436 · nodejs/node
X Title: http.get returns "getaddrinfo ENOTFOUND" error · Issue #5436 · nodejs/node
Description: Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); there's this error coming back: HTTP 5021: SOCKET ERROR: getaddrinfo ENOTFOUND _host_ _host_:80 Error: g...
Open Graph Description: Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); there's this error coming back: HTTP 5021: SOCKET ERROR: getaddr...
X Description: Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); there's this error coming back: HTTP 5021:...
Opengraph URL: https://github.com/nodejs/node/issues/5436
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http.get returns \"getaddrinfo ENOTFOUND\" error","articleBody":"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","author":{"url":"https://github.com/T94T","@type":"Person","name":"T94T"},"datePublished":"2016-02-25T13:57:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":81},"url":"https://github.com/5436/node/issues/5436"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f928249-9176-ef90-19fb-52663b128661 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEA2:41260:1786342:223C58C:6A4E5030 |
| html-safe-nonce | c2c769196c1e8ce988dac10cdf9e8c8055dd7626b766e098c3f0e9f8a60765ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUEyOjQxMjYwOjE3ODYzNDI6MjIzQzU4Qzo2QTRFNTAzMCIsInZpc2l0b3JfaWQiOiIxNzk5NjEwMzk4NTI3MDgyNTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc593ad439734716385124149175902d222c03df92fda32aab24d3e91351ccc3 |
| hovercard-subject-tag | issue:136394028 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5436/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1d694088ab8263d9bdf861ac4e9ca8e872b51b004b4175cdd597400ac8da47f/nodejs/node/issues/5436 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1d694088ab8263d9bdf861ac4e9ca8e872b51b004b4175cdd597400ac8da47f/nodejs/node/issues/5436 |
| og:image:alt | Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); there's this error coming back: HTTP 5021: SOCKET ERROR: getaddr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | T94T |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f344f1eab54fc7dfc02d0d018cda7e158c3db65c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width