尝试使用node.js azure package在Azure上创建消息时,我会遇到此错误:" 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:approotnode_modulesazurelibservicesqueuequeueservice.js:295:54
at Request._callback (E:approotnode_modulesazurelibservicescoreserviceclient.js:197:9)
at E:approotnode_modulesazurenode_modulesrequestmain.js:122:22
at Request.<anonymous> (native)
at Request.emit (events.js:67:17)
at ClientRequest.<anonymous> (E:approotnode_modulesazurenode_modulesrequestmain.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)
我在此处在github repo上发布问题的答案:
https://github.com/windowsazure/azure-sdk-for-node/issues/434
答案:在发布之前,我从web.config中删除了模拟的env var。有一个错误(在0.6.7版本中修复了),该错误阻止了Web.cloud.config for web.config
感谢MarkCowl!