I have a slack bolt-js server app that runs with socketMode: true It works perfectly fine on my local pc, but when moving it to Heroku in a web dyno, it fails after 1 min. It starts up just fine and it is fully functional during that minute, but after 1 min I get this
2021-09-01T12:59:33.771745+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
My bolt-js app is started like this:
await app.start(process.env.PORT);
I think Heroku is failing to detect that there is a websocket on this port open and then times out.
I went through a lot of documentation already. I must say that the bolt-js documentation is conflicting with Heroku's. They suggest I use a worker dyno, but Heroku says explicitly that worker dynos cannot receive web HTTP traffic.
Totally at a loss here. Any ideas anybody?