-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Failed to launch the browser process #69
Comments
Just ran into this as well while trying to get my project running locally with |
Probably related, but I've been trying to get around this via docker #70 and setting the --platform linux/x86_64 The only alternative that has been successful for me is to use the locally installed chromium path. In this case I am using playwright:
|
This issue is maybe a copy of #42 as well so you can likely close this out and comment over there instead with ideas. |
Hi @AgniaStaravoitava I faced similar issues, but it was mostly due to version incompatibility. I have documented my ways to debug. Hope it helps! |
So this lib is a no-go for local testing if you have an M1/2 Mac? |
@alexcroox You can just use local chrome for testing. set process.env.IS_LOCAL = something, and try something like this: await puppeteer.launch({
args: process.env.IS_LOCAL ? undefined : chromium.args,
defaultViewport: chromium.defaultViewport,
executablePath: process.env.IS_LOCAL ? '/path/to/Chromium' : await chromium.executablePath(),
headless: process.env.IS_LOCAL ? false : chromium.headless,
}); |
Hey @Sparticuz shouldn't it work locally for mac? I mean your previous package worked and so does puppeteer. I don't want to use my local Chrome as it reduces my confidence in my local env testing. |
Workaround on mac in case anyone is still stuck
|
Here's a workaround I found if using with AWS SAM with M1 Macs:
|
@conrad-scherb Thank you! That worked perfectly for me. |
Thank you so much @wickedst , you saved my life 🙏 |
"Failed to launch the browser process!\n/var/folders/ss/tlgf043d2_d50b22hy4r0tk40000gn/T/chromium: /var/folders/ss/tlgf043d2_d50b22hy4r0tk40000gn/T/chromium: cannot execute binary file\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n"
Version
"@sparticuz/chromium": "^109.0.6",
"puppeteer": "^19.7.5",
"puppeteer-core": "^19.7.5",
The text was updated successfully, but these errors were encountered: