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

前端 未结 5 1812
面向向阳花
面向向阳花 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:03

    I guess sometimes you just need to step away from the problem...

    I found a solution, but it doesn't seem to answer the question, and I don't really like the it.

    I changed the CherryPy server configuration to serve at 127.0.0.1 instead of localhost, and the node client started working.

提交回复
热议问题