![](/img/trans.png)
[英]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.