The scraper I wrote runs perfectly on my PC, A windows OS that runs node.js v14.4.0.
But when I have tried to run it on Digital Ocean Droplet, Ubunto machine, I get for some of the pages the following error: Page crashed!
with not much information.
Here is the code for printing the error:
const handleClose = async (msg) =>{
console.log(msg)
page.close();
browser.close();
process.exit(1);
}
process.on("uncaughtException", (reason, p) => {
const a = `Possibly Unhandled Exception at: Promise , ${p}, reason: , ${reason}`
handleClose(a);
});
How do I tackle this one? And what could cause it? as it works wonderfull on my Windows PC.