I'm testing this amazing library in a proof of concept and I had a problem with a deploy at Vercel. My suspicion is that vercel needs to deal with browser binary in other way.
The complete error log is:
Scraper (constructing): Using options: {"sessionCookieValue":"<cookieValue>","keepAlive":true,"timeout":10000,"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36","headless":true}
Scraper (setup): Launching puppeteer in the background...
Scraper (setup): An error occurred during setup.
2021-01-24T13:38:28.641Z 01798364-a27e-4032-b9e4-b7bf834a6870 ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: Could not find browser revision 756035. Run \"npm install\" or \"yarn install\" to download a browser binary.","reason":{"errorType":"Error","errorMessage":"Could not find browser revision 756035. Run \"npm install\" or \"yarn install\" to download a browser binary.","stack":["Error: Could not find browser revision 756035. Run \"npm install\" or \"yarn install\" to download a browser binary."," at ChromeLauncher.launch (/var/task/node_modules/puppeteer/lib/Launcher.js:81:23)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: Could not find browser revision 756035. Run \"npm install\" or \"yarn install\" to download a browser binary."," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:326:22)"," at processPromiseRejections (internal/process/promises.js:209:33)"," at processTicksAndRejections (internal/process/task_queues.js:98:32)"]}
Unknown application error occurred
Hi!
I'm testing this amazing library in a proof of concept and I had a problem with a deploy at Vercel. My suspicion is that vercel needs to deal with browser binary in other way.
The complete error log is:
An exemple using aws-lambda