节点 startup/recovery 进行中出错。尚未准备好接受连接?

Error during Node startup/recovery in progress. Not yet ready to accept connections?

我是 运行 IISNode 上的快速服务器,但注意到网络服务由于以下原因而关闭:

我需要处理由于配置不匹配或连接问题导致 IIS 节点系统崩溃时发生的异常。

I got the following error that Application has thrown an uncaught exception and it get terminated, not able to handle the exception:
 Error: Node startup/recovery in progress. Not yet ready to accept connections
    at process.<anonymous> (C:\Program Files\iisnode\interceptor.js:201:110)
    at emitOne (events.js:77:13)
    at process.emit (events.js:169:7)
    at process._fatalException (node.js:224:26)

正在查看 Google 上的错误。看起来错误来自对 vertica 数据库的失败查询:

https://community.hpe.com/t5/Cloud-Optimizer-Practitioners/vPV-1-10-Error-Unable-to-collect-performance-data-from-data/td-p/6164633

问题:

如何防止 IISNOde 在查询失败时崩溃? IISNode 崩溃时处理未捕获异常的代码。

这些是我在 package.json 中的节点依赖项:

"dependencies": {
    "async": "^2.1.4",
    "body-parser": "^1.15.2",
    "cors": "2.7.1",
    "cron": "^1.2.1",
    "express": "4.14.0",
    "mssql": "3.3.0",
    "winston": "2.2.0",
    "xmlhttprequest": "^1.8.0"
  }

"Error: Node startup/recovery in progress." 的原因是 IISNode 旧版本存在当脚本尝试访问资源时崩溃的错误,该错误已在 "IISNode" 的较新版本中修复。

在下面提到的代码中,“<iisnode idontexist="12" />”行负责修复并添加下面这行代码将避免崩溃并处理 IISNode 中的异常。

此问题已修复一段时间,

请安装最新的 "IISNode" 并重试。

你能试试 adding/Replacing "Web.Config"

中的这些行吗
<configuration>
  <system.webServer>
    <handlers>
      <add name="iisnode" path="hello.js" verb="*" modules="iisnode" />
    </handlers>

    <iisnode idontexist="12" />

  </system.webServer>
</configuration>

参考: https://github.com/tjanczuk/iisnode/blob/master/test/functional/www/116_configerror/web.config