ali*_*ong 8 coffeescript hubot
我正在尝试使用hubot msg对象发送http请求,但最终收到此错误:错误:连接EINVAL 0.0.xx.xx:80-本地(0.0.0.0:0)
一个类似的问题是这是由主机文件引起的,但没有详细信息。
Hed*_*dge 27
在过去的两年里,我多次看到这个问题。在所有情况下都是@Shiva 所说的:协议或端口丢失。
以下是同事在 Node.js 应用程序中使用 axios 模块最近遇到的此问题:
axios({ method: "get", url: "hostname:8080/liveness" })
预先准备http好之后:
axios({ method: "get", url: "http://hostname:8080/liveness" })