What ENOTFOUND error in an http request, happening time to time, means?

前端 未结 1 1172
夕颜
夕颜 2021-01-25 12:19

I have a nodejs server, running on an hosted cloud machine. An http request

var req = Http.request(options, function(res) { ... }

with options<

相关标签:
1条回答
  • 2021-01-25 12:58

    It's DNS errors, specifically, Node can't resolve a hostname "www.mysite.com" to an IP-address.

    There can be various reasons for this:

    • the hostname is just invalid
    • your network connection is faulty
    • your DNS server is faulty
    • the DNS server that handles "mysite.com" is faulty

    As a heads-up: while your question is valid, debugging the underlying cause (DNS issues) is off-topic on StackOverflow.

    0 讨论(0)
提交回复
热议问题