heroku-playwright-buildpack icon indicating copy to clipboard operation
heroku-playwright-buildpack copied to clipboard

I'm getting application error on java spring-boot after putting playwright as buildpack on heroku

Open ItArPrishtine opened this issue 3 years ago • 1 comments

Example on api-call:

2022-09-04T20:15:09.689079+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/api/p1/run" host=ar-prishtine.herokuapp.com request_id=8a2f002b-4ac3-4ea5-b1d6-734e69a2a838 fwd="37.35.67.17" dyno= connect= service= status=503 bytes= protocol=https

ItArPrishtine avatar Sep 04 '22 20:09 ItArPrishtine

I had the same error.

I ended up doing the following...

  • Adding nodejs as a buildpack
  • Adding a file named "Procfile" to my project root with this inside it "web: npm install && npm run start"
  • Setting the playwright-chromium version to 1.15.0 (there was another thread about future versions causing issues)
  • Pushing Procfile and other changes to Heroku
  • Running this heroku command "heroku ps:scale web=1"

Finally, my app would start and use Playwright.

cdsimmons avatar Sep 10 '22 16:09 cdsimmons