Closed BananaCrazy closed 4 years ago
Hey @BananaCrazy, I noticed your code in this repo. Unfortunately the default Heroku web dyno cannot run a headless browser. You can refer to our Docker setup to install the dependencies required to run a browser on Heroku. Since Heroku can run Docker, this should unblock you.
Context:
Code Snippet
The error that is being logged: Error: Protocol error (Target.setAutoAttach): Target closed..
This is for a custom command on a Discord bot, when I was testing locally this worked perfectly fine. Almost never got any errors.
The moment I deployed my code to Heroku so it can be online all the time it gave me an instant error like this, and the error message happens almost instantly after the command was typed in so it must be happening very early in the process. Not sure if this is a Playwright error or something to do with Heroku but any help here would be very appreciated.