#Heroku İmplementation issue with google-chrome ENOENT

3 messages · Page 1 of 1 (latest)

lethal glen
#

Hello, I am trying to use wwebjs on Heroku.
I use RemoteAuth,
Than I add theese buildpacks for heroku:
https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/google-chrome.tgz
https://github.com/heroku/heroku-buildpack-google-chrome
and conf vars I added this lines:
PLAYWRIGHT_BUILDPACK_BROWSERS=chromium
PUPPETEER_EXECUTABLE_PATH="google-chrome"
And I'm using with this:
puppeteer: {
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH,
args: [
'--no-sandbox',
'--disable-setuid-sandbox'
] }
But I get this error:
`/Users/duygu/JS_Projects/WhatsAppWebAPI/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241
reject(new Error([
^

Error: Failed to launch the browser process! spawn google-chrome ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/Users/duygu/JS_Projects/WhatsAppWebAPI/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20)
at ChildProcess.<anonymous> (/Users/duygu/JS_Projects/WhatsAppWebAPI/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:233:85)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)`
GitHub

Run (headless) Google Chrome on Heroku. Contribute to heroku/heroku-buildpack-google-chrome development by creating an account on GitHub.

regal solstice
#

Have you installed the puppeteer buildpack on your heroku environment?