Free tier Discord bot fails health check

Hello,

I was looking into using Koyeb to deploy a discord bot, and it seems to fail the health check. I incorporated a TCP echo server (on 127.0.0.1:8000) so that it should pass the check, and it seems to work when I run it locally, but still seems to fail the koyeb health check.

Any thoughts? Thanks!

Hello @sporkl,

Your bot should listen on 0.0.0.0:8000 and it will work.
When you are listening on localhost(127.0.0.1) we cannot connect to it. It’s accesible only from inside of your instance.

That did the trick perfectly, thank you very much!

1 Like

How can I make my buildpack builder to spin up the application listening through 0.0.0.0:8000? I have a remix/node app and apparently exposes the instance in localhost.

[remix-serve] http://localhost:8000 (http://10.2.1.179:8000)

In my package.json

“start”: “remix-serve ./build/index.js”,

I am able to make external http requests though. I can render the web page. Why is this?

Appreciate your help :slight_smile:

0.0.0.0 means “listen on all available IPs”. If your app prints “[remix-serve] http://localhost:8000 (http://10.2.1.179:8000)” It should be ok, it listens on IP 10.2.1.179

Do you have any issue with your app?