node-html-to-image icon indicating copy to clipboard operation
node-html-to-image copied to clipboard

Unable to launch browser, error message: Failed to launch the browser process!

Open prioarief opened this issue 3 years ago • 2 comments
trafficstars

Unable to launch browser, error message: Failed to launch the browser process! Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

prioarief avatar Sep 06 '22 07:09 prioarief

+++Same error

sankara-sabapathy avatar Sep 10 '22 14:09 sankara-sabapathy

Error: Error: Unable to launch browser, error message: Could not find expected browser (chrome) locally. Run npm install to download the correct Chromium revision (982053).

sankara-sabapathy avatar Sep 10 '22 14:09 sankara-sabapathy

same error

RickRyan26 avatar Sep 30 '22 21:09 RickRyan26

Try passing this puppeteerArgs: { args: ['--no-sandbox'] } to nodeHtmlToImage function.

ShalaQweghen avatar Oct 05 '22 19:10 ShalaQweghen

Not working :/

mlc-studio avatar Oct 19 '22 15:10 mlc-studio

Hello there 👋

I see a lot a comments here. I need some explanations and instructions (step by step) to reproduce easily your use cases. Otherwise I won't be able to help you.

frinyvonnick avatar Oct 22 '22 16:10 frinyvonnick

I believe they are probably running this in a aws-lambda env. It looks like your latest unrelease code fixes the issue with the custom puppeteer option.

bpeters avatar Nov 08 '22 21:11 bpeters

I just released 3.3.0 version which contain a feature to customise which puppeteer library node-html-to-image uses. As @bpeters it might help you making node-html-to-image work in a cloud context. Here is the documentation : https://github.com/frinyvonnick/node-html-to-image#using-different-puppeteer-libraries

Could you close the issue if it fixes it, please?

frinyvonnick avatar Jan 18 '23 10:01 frinyvonnick

Without any new answer I close this issue. Feels free to reopen it 👍

frinyvonnick avatar Aug 05 '23 09:08 frinyvonnick