ECONNREFUSED error with node.js that does not occur in other clients

前端 未结 5 1781
面向向阳花
面向向阳花 2020-12-30 21:42

I\'m making an http request with the node.js client, and I get an ECONNREFUSED error. When I make what appears to be the same request

5条回答
  •  一整个雨季
    2020-12-30 22:07

    I exactly faced the same issue where I was accessing a third party url. I tried using dns (subdomain.domain.com) and ip (XXX.XXX.XXX.XXX) both but it did not work.

    After some struggle, later I realized that this was a problem at server (subdomain.domain.com) end which was not responsive and gone down.

    I disagree this is a problem with localhost / 127.0.0.1 (or domain name vs IP address). ( In above case, it's surely a case of incorrect host mapping)

提交回复
热议问题