node-html-to-image
node-html-to-image copied to clipboard
Unable to launch browser, error message: Failed to launch the browser process!
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.
+++Same error
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).
same error
Try passing this puppeteerArgs: { args: ['--no-sandbox'] } to nodeHtmlToImage function.
Not working :/
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.
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.
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?
Without any new answer I close this issue. Feels free to reopen it 👍