[英]Can I filter an Azure ServiceBusService using node.js SDK?
[英]Can't debug using Azure SDK for Node.js
多年来,我一直对Azure SDK感到沮丧,因为我一直在使用它,并且仍然出现将错误输出到日志文件的问题:
Application has thrown an uncaught exception and is terminated:
Error: ENOENT, no such file or directory 'C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\iisnode\RD00155D4313F9-20848-stdout-Tue Mar 26 2013 03:10:56 GMT+0000 (GMT Standard Time).txt'
at Object.openSync (fs.js:240:18)
at Object.writeFileSync (fs.js:628:15)
at SyncWriteStream.<anonymous> (D:\Program Files (x86)\iisnode\interceptor.js:181:20)
at Object.<anonymous> (console.js:25:18)
at IncomingMessage.<anonymous> (C:\DWASFiles\Sites\pazooza\VirtualDirectory0\site\wwwroot\utils\facebook.js:69:21)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:130:23)
at CleartextStream.socketOnData [as ondata] (http.js:1288:20)
at CleartextStream._push (tls.js:375:27)
at SecurePair.cycle (tls.js:734:20)
如您所见,由于fs对象试图查找c:驱动器上的内容而发生错误,指向我的本地计算机的c:驱动器是什么与假定在Azure网站中的日志记录系统有关?
和D:\\ Program Files(x86)\\ iisnode \\ interceptor.js
这到底是不是要指向Azure云网站实例中的资源?
Azure SDK中的任何人都可以告诉我如何解决此错误。
我在这个月和几个月前问过这个问题,我们以为现在已经把它修复了……非常令人沮丧的Microsoft ... wtf,你们在做些什么来使我们的生活更轻松?
我在这里的其他问题导致此问题:
Webmatrix 2损坏和Windows Azure Node.js内部服务器错误
我的node.js web.config文件如下所示:
<configuration>
<system.webServer>
<handlers>
<!-- indicates that the server.js file is a node.js application to be handled by the iisnode module -->
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<!-- Don't interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
</rule>
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<rule name="StaticContent">
<action type="Rewrite" url="public{{REQUEST_URI}}"/>
</rule>
<!-- All other URLs are mapped to the Node.js application entry point -->
<rule name="DynamicContent">
<conditions>
<add input="{{REQUEST_FILENAME}}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="server.js"/>
</rule>
</rules>
</rewrite>
<!-- You can control how Node is hosted within IIS using the following options -->
<iisnode
loggingEnabled="true"
devErrorsEnabled="true"
/>
</system.webServer>
</configuration>
我对设置logginEnabled =“ true”时为什么会显示此错误的任何帮助或建议将不胜感激。
当我将loggingEnabled设置为false时,没有错误,并且站点运行正常,但是当它打开时,一切都变了!
您能否在以下位置提交问题: https : //github.com/windowsazure/iisnode ?
听起来这是IISNode日志记录的问题? 我们可能会在此方面为您提供进一步的详细信息。
安德烈
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.