-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
UnhandledPromiseRejectionWarning: Error: Failed to launch browser! #581
Comments
Thanks for joining us on the bleeding edge! Did you run both Assuming your WSL is Ubuntu based, you probably need to get Chrome's dependencies. It looks like we are missing the list of what those dependencies actually are, but I'd try
You can also launch with the |
@JoelEinbinder Thanks for your timely response! I was able to track down the issue. The problem appears to be with Chromium's sandbox. I found some troubleshoot docs from Puppeteer that gave the hint. I've been unable to get a Chrome sandbox on WSL, but if I disable sandbox (which isn't ideal) it does work:
Edit: I should note that this only works for Chromium. Firefox continues to throw the cryptic I'm able to get a little more out of Webkit, it throws:
|
@JoelEinbinder Those helped me over this hurdle but just wanted to point out that a preliminary
may be needed |
I get the same |
To add more details, it seems to be a problem with Yarn. npm seems to reliably download the browser binaries every time. |
In the meantime it appears that running |
Folding into #1103 |
Caso ajude alguém, encontrei o apoio necessário em: https://askubuntu.com/questions/1204571/how-to-install-chromium-without-snap |
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Max Schmitt <max@schmitt.mx>
First of all, thanks for the work on this project! The prospect of a more platform-agnostic alternative to Puppeteer is exciting.
I'm trying to run the example project locally and ran into an issue, hoping maybe someone can point me in the right direction.
The issue
I have a file,
test.ts
:When I run
node test.ts
I get the following error:What I'm running
I'm running WSL on Windows 10, Node 11.9.0.
What I've tried
I had similar code integrated more deeply into an application I'm working on. I pulled the code out into the simplest reproducible case I could, which is the code above.
I've tried switching between firefox, chromium, and webkit. I've also tried setting
headless
to false.Any help or guidance you might be able to offer is appreciated!
The text was updated successfully, but these errors were encountered: