S
S
shafty2021-03-19 22:23:20
Node.js
shafty, 2021-03-19 22:23:20

Heroku: Web process failed to bind to $PORT within 60 seconds of starting (with axios)?

Hello everyone, there was a need to upload a telegram bot on node.js to heroku. after launch, the bot works for 60 seconds, after which it crashes with an error in the log:

2021-03-19T19:19:41.959193+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2021-03-19T19:19:42.005111+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-03-19T19:19:42.092300+00:00 heroku[web.1]: Process exited with status 137
2021-03-19T19:19:42.173589+00:00 heroku[web.1]: State changed from starting to crashed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2021-03-19
@2ord

The application must listen on port $PORT
https://devcenter.heroku.com/articles/error-codes#...
https://help.heroku.com/P1AVPANS/why-is-my-node-js...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question