question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to launch the browser process!

See original GitHub issue

hi, i am writing a report. this is in repl.it, and i do have all dependencies, even the dependencies’ dependencies installed. what do I do? only use code snippet:

client.on('message', msg => {

  if (msg.content.startsWith('\`\`\`html') && msg.content.endsWith('\`\`\`')) {

    nodeHtmlToImage({

  	  output: 'image.png',

  	  html: msg.content.slice(7, msg.content.length - 3)

    })

	  .then(() => 

	    msg.channel.send(" ", {files: ["image.png"]})

	  )

  }

});

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
frinyvonnickcommented, May 11, 2020

@ZimberlyTheIrken can you confirm the solution proposed by @fiantinangon (thank you 👍) fix your issue?

1reaction
fiantinangoncommented, May 11, 2020

const image = await nodeHtmlToImage({ html: template.receipt, content: { transaction, name: req.query.name }, puppeteerArgs: [‘–no-sandbox’] });

You can add puppeteerArgs: ['--no-sandbox'] to fix this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Failed to launch the browser process puppeteer
What worked for me was: let browser = await puppeteer.launch({ executablePath: '/usr/bin/chromium-browser', args: [ '--disable-gpu', '--disable ...
Read more >
[Bug]: Failed to launch the browser process! #7917 - GitHub
An error is thrown when I use the following code! const browser = await puppeteer.launch({ headless: true });.
Read more >
Troubleshooting - Puppeteer
This means that the browser was downloaded but failed to be extracted correctly. The most common cause is a bug in Node.js v14.0.0...
Read more >
Failed to launch the browser process! spawn puppeteer Code ...
1. // Puppeteer Error on ubuntu 100% Correct Solution by Vivek ; 2. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ; 3. sudo apt ...
Read more >
Puppeteer - Failed to launch the browser process! - DietPi
Puppeteer - Failed to launch the browser process! ... There seems to be a syntax error in one of the script you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found