vgalin / html2image

A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
MIT License
344 stars 44 forks source link

Error when running as root on Linux #66

Closed ryanzh98 closed 2 years ago

ryanzh98 commented 2 years ago

When running as root, this error pops up and no images were saved.

[0517/064559.081037:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

vgalin commented 2 years ago

Hello, have you tried adding the --no-sandbox flag like mentionned in this comment ?