尝试使用 node.js azure 包版本 0.6.6 在 azure 队列上创建消息时出现此错误:{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect "}
它只发生在已部署的 WebRole 中,但在本地和 Azure 网站中运行良好。我需要这个在 webrole 中,因为我需要一个 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)