0
我在尝试使用node.js azure包版本0.6.6在队列中创建消息时出现此错误:{“code”:“ECONNREFUSED “,”errno“:”ECONNREFUSED“,”系统调用“:”连接“}在WebRole中与来自node.js的azure队列通信时出错
它只发生在部署的WebRole中,但在本地和Azure网站中正常工作。我需要这样做,因为我需要一个SSL证书。
我部署使用这种方法的作用:https://www.windowsazure.com/en-us/develop/nodejs/tutorials/getting-started/
我在日志中看到的错误是这样可以帮助诊断。
Application has thrown an uncaught exception and is terminated:
TypeError: Cannot read property 'statusCode' of null
at E:\approot\node_modules\azure\lib\services\queue\queueservice.js:295:54
at Request._callback (E:\approot\node_modules\azure\lib\services\core\serviceclient.js:197:9)
at E:\approot\node_modules\azure\node_modules\request\main.js:122:22
at Request.<anonymous> (native)
at Request.emit (events.js:67:17)
at ClientRequest.<anonymous> (E:\approot\node_modules\azure\node_modules\request\main.js:224:10)
at ClientRequest.emit (events.js:67:17)
at Socket.socketErrorListener (http.js:1188:9)
at Socket.emit (events.js:67:17)
at Array.0 (net.js:301:14)