发生此错误时,PM2不会重新启动Node JS应用程序

时间:2020-08-12 12:22:24

标签: node.js puppeteer pm2

由于某种原因,每次我遇到此特定错误

/home/pi/.pm2/logs/app-error.log last 15 lines:
0|scripts | { TimeoutError: Navigation timeout of 30000 ms exceeded
0|scripts |     at Promise.then (/home/pi/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111) name: 'TimeoutError' }

pm2不会重新启动节点JS脚本。

1 个答案:

答案 0 :(得分:0)

因为该错误不会使应用程序的主线程崩溃,所以它只是从操纵the线程中打印错误