Puppeteer crashes when running on app served by pm2.
API > { TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
API > at Promise.then (/home/ubuntu/node_modules/puppeteer/lib/NavigatorWatcher.js:94:21)
API > at <anonymous> name: 'TimeoutError' }
Puppeteer is a wrapper around google headless chrome, when you try to spin up a puppeteer instance inside of an app running pm2, not only does puppeteer fail but also the cpu usage spikes and the entire server becomes unresponsive.
I tried running the same code on nodemon and forever and that works fine with only ~40mb of ram usage and the request completes within 5 seconds.
How could we reproduce this issue?
Run any puppeteer instance inside of an app served by pm2
What’s going wrong?
Puppeteer crashes when running on app served by pm2.
Puppeteer is a wrapper around google headless chrome, when you try to spin up a puppeteer instance inside of an app running pm2, not only does puppeteer fail but also the cpu usage spikes and the entire server becomes unresponsive.
I tried running the same code on nodemon and forever and that works fine with only ~40mb of ram usage and the request completes within 5 seconds.
How could we reproduce this issue?
Run any puppeteer instance inside of an app served by pm2
Supporting information