whatsapp-web.js: Puppeteer not runs in Heroku

The app runs fine in Macos, but when I tried to deploy in Heroku it’s failed.

I used different kinds of setups in Puppeteer like --no-sandbox and headless, even I followed the Puppeteer guide for Heroku, but I couldn’t make it.

Could someone run on Heroku?

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments

i use heroku and add buildpack

https://buildpack-registry.s3.amazonaws.com/buildpacks/jontewks/puppeteer.tgz

@mpirescarvalho yes, it’s working!

On your Heroku App go to Settings > Buildpacks, and add: https://buildpack-registry.s3.amazonaws.com/buildpacks/jontewks/puppeteer.tgz

If you add the pack after deploy, you must make a new deploy.

Feel free to contact me if you can’t make it work.

@mpirescarvalho a little detail I’ve forgotten.

In your WAClient use as parameter:

            puppeteer: {
                args: [
                    '--no-sandbox',
                ],
            },

I hope it would work.

@nicolascavallin thank you, that worked