heroku error Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Asked Answered
P

1

0

I made a scraper with puppeteer and I didn't specified any port for serving it. it just runs and scrape data and exits with process.exit() command.

I deployed it to heroku with cli but after running it throw error:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch.
Stopping process with SIGKILL
Process exited with status 137

whats wrong?

Plumbago answered 4/5, 2021 at 7:25 Comment(4)
Have you applied everything mentioned here: github.com/puppeteer/puppeteer/blob/main/docs/…? (heroku build pack installed, launch flags added)Greig
yes i added buidpackPlumbago
It's not clear when your scraper should run. You'll probably want to use a scheduler or clock. Examples of both are in Puppeteer on Heroku Error R10 (Boot timeout) Node (webscraping app)Scrannel
Does this answer your question? Puppeteer on Heroku Error R10 (Boot timeout) Node (webscraping app)Scrannel
I
0

Looks like you have a Web Dyno so the app must bind to $PORT.

You can instead define a worker (in the Procfile) if you do not need incoming HTTP requests.

Intervention answered 5/5, 2021 at 15:48 Comment(1)
I'm not familiar with worker and Procfile, can you send me an example?Plumbago

© 2022 - 2024 — McMap. All rights reserved.