rubber-blueR
Apify & Crawlee2y ago
1 reply
rubber-blue

How to manually specify path to browser that should be run?

I have a problem with my playwright after restarting app on AWS EB as you can see

Mar  7 15:20:22 ip-10-249-15-251 web: at async /var/app/current/node_modules/@crawlee/browser-pool/browser-pool.js:274:37 {
Mar  7 15:20:22 ip-10-249-15-251 web: name: 'BrowserLaunchError',
Mar  7 15:20:22 ip-10-249-15-251 web: [cause]: browserType.launchPersistentContext: Executable doesn't exist at /home/webapp/.cache/ms-playwright/ch                                    romium-1097/chrome-linux/chrome

my app is trying to run chromium under above path, but I don't have that version installed

I have this:
sh-4.2$ pwd
/home/webapp/.cache/ms-playwright
sh-4.2$ ls
chromium-1105  ffmpeg-1009


I'm not sure why this is happening

is this because im using meta package
crawlee: 3.7.2
without caret (
^
) and underneath its updated to the newest version?
also playwright:
1.4.1
where newest is
1.4.2
Was this page helpful?