playwright-community / heroku-playwright-buildpack

Buildpack for running Playwright with Chromium and Firefox on Heroku.
https://heroku.playwright.tech
47 stars 45 forks source link

Chromium only build missing dependencies #12

Open aspectum opened 3 years ago

aspectum commented 3 years ago

I'm quite sure the Chromium only build is missing dependencies. I know for a fact libx11-xcb1 is one of them, as I ran playwright with DEBUG=pw:browser and saw it missing (also confirmed by someone else here). I added it to the section with the dependencies for both Chromium and Firefox and the error was gone, but still playwright wouldn't work. After struggling with this for a couple of days I just gave up and removed the PLAYWRIGHT_BUILDPACK_BROWSERS env variable and now everything works. The strange thing is that in another part of my code, where I scrape a single page, things seem to work regardless. The problematic section is when I scrape several pages (in the same browser and same context). But now everything is fine.

s0-david commented 3 years ago

Wow.. thank you so much @aspectum for the comment. Removing the PLAYWRIGHT_BUILDPACK_BROWSERS env variable really did solve my issue as well. I hope to use the variable when this issue gets fixed.