尝试使用node.js azure软件包版本0.6.6在azure中的队列上创建消息时出现此错误:{“code”:“ECONNREFUSED”,“errno”:“ECONNREFUSED”,“syscall” : “连接”}
它只发生在已部署的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)
答案 0 :(得分:1)
我在github repo上发布了一个问题的答案:
https://github.com/WindowsAzure/azure-sdk-for-node/issues/434
答案: 我在发布之前从web.config中删除了EMULATED env var。有一个错误(在0.6.7版本中修复)阻止替换web.cloud.config for web.config
谢谢markcowl!