linkedtales / scrapedin

LinkedIn Scraper (currently working 2020)
Apache License 2.0
593 stars 171 forks source link

Pupeteer errors #142

Open mstniy opened 3 years ago

mstniy commented 3 years ago

We get an UnhandledPromiseRejectionWarning if the browser crashes while scraping a page.

This can be induced by attempting to crawl the page chrome://kill, but it can also happen in real-world scenarios, such as the machine not having enough memory.

It is currently not possible to programmatically handle such errors, be it by using Promise.catch or try/catch.