http.get()或http.request()在Azure上报错:connect EADDRNOTAVAIL
发布于 12 年前 作者 lichgo 4351 次浏览 最后一次编辑是 8 年前

试用Azure,程序中有一个用到http.get()和http.request()向Google APIs请求数据,在本地是OK的,但是在Azure上报错。报错信息如下。请问有类似经验的童鞋吗?

Thu May 23 2013 07:35:14 GMT+0000 (Coordinated Universal Time): Unaught exception: Error: connect EADDRNOTAVAIL
at errnoException (net.js:670:11)
at connect (net.js:548:19)
at Socket.connect (net.js:613:5)
at Object.<anonymous> (net.js:77:12)
at new ClientRequest (http.js:1091:25)
at Object.request (http.js:1427:10)
at Object.getCityByLatLng (C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\dianping.js:9:23)
at C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\server.js:26:27
at Parser.<anonymous> (C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\node_modules\xml2js\lib\xml2js.js:246:20)
at Parser.emit (events.js:67:17)

Application has thrown an uncaught exception and is terminated: Error: connect EADDRNOTAVAIL at errnoException (net.js:670:11) at connect (net.js:548:19) at Socket.connect (net.js:613:5) at Object.<anonymous> (net.js:77:12) at new ClientRequest (http.js:1091:25) at Object.request (http.js:1427:10) at Object.getCityByLatLng (C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\dianping.js:9:23) at C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\server.js:26:27 at Parser.<anonymous> (C:\DWASFiles\Sites\nearby\VirtualDirectory0\site\wwwroot\node_modules\xml2js\lib\xml2js.js:246:20) at Parser.emit (events.js:67:17)

1 回复

看起来像是端口紧缺

回到顶部