当我尝试在azure上运行railway.js节点应用程序时,我得到了一个iisnode错误500。遗憾的是,LogFiles/nodejs和wwwroot/server.js.logs中的日志文件中没有任何内容
下面是响应
iisnode encountered an error when processing the request.
HRESULT: 0x2
HTTP status: 500
HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The node.exe process has not written any information to the stdout or stderr.该应用程序在本地运行良好,我还可以将一个普通的hello world node应用程序(而不是railway.js应用程序)部署到Azure。如何获取有关该错误的更多信息,是否可以查看控制台输出?
发布于 2012-09-08 04:59:09
重新启动可以解决这个问题。它看起来可能与您用于会话缓存的机制有关,因为默认设置与在多个实例下运行不兼容。
要打开日志记录,请确保在iisnode.yml文件中设置了loggingEnabled: true,这样您就应该能够下载日志了
https://stackoverflow.com/questions/12058022
复制相似问题