frinyvonnick / node-html-to-image

A Node.js module that generates images from HTML
https://www.npmjs.com/package/node-html-to-image
Apache License 2.0
829 stars 125 forks source link

Centos 7 Digital Ocean droplet with Express not returning any error or image #199

Open impactcolor opened 1 year ago

impactcolor commented 1 year ago

First off, thank you so much for this package! I've read several different options for different servers, Puppeteer js shows aws, travis and others but not Digital Ocean. So I figured I'd post here.

Running Centos 7 before adding the args: ['--no-sandbox', '--disable-setuid-sandbox'] I get the no sandbox error. After I run the above I don't get any error. Nothing happens not even a log to the server.
nodeHtmlToImage({ puppeteerArgs: { timeout: 36000, headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox'] }, output:/var/www/vhosts/inkto.art/preview.inkto.art/public/${responseImg}, html: '<h1>test</h1>' }) .then(() => res.send('image created check server')) .catch(e => res.send(We have an error: ${e}))

Does anyone have any idea or pointers how I can run on DO?

frinyvonnick commented 1 year ago

Hi @impactcolor 👋

node-html-to-image uses puppeteer, did you checkout their troubleshooting section?