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

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

Open impactcolor opened this issue 2 years ago • 1 comments
trafficstars

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?

impactcolor avatar Apr 23 '23 06:04 impactcolor

Hi @impactcolor 👋

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

frinyvonnick avatar Aug 05 '23 09:08 frinyvonnick