Application goes offline all the time
I'm hosting a Discord bot on replit using this module. It creates a webserver which gets pinged by uptimerobot so it doesn't go offline. However, it does go offline often, and for a long time. I'm hosting 2 other bots the same way, but they're written in python. Even the code that's used to make the webserver is the same in the python bots (keep_alive.py and keepalive() in main file) but they never go offline, or if they do, it's only once in 2 weeks for only a few minutes. So I guess the problem is with this express module? Can this be solved?
Hi @jvhdiscord sorry you are having trouble. There is nothing in Express that stops the server, so unless there is something you may have written in your code to do this (no code is shared so we cannot check) it may be an issue with your hosting provider. You may want to raise the issue with the hosting provider first or even on Stackoverflow where folks with various knowledge points can help out.
Unless you can distill down the specific issue with this module and provide a way to reproduce the issue, there isn't enough information to help you from this module's issue tracker, unfortunately.
@jvhdiscord Please reach out to repl.it and ask for assistance for this. Unless something is wrong on how you ping the server it should be all fine.
Sometimes there's a connection timeout. It just keeps on loading but the code is fixed now. everything works except the webserver, which causes the bot to go offline after a while.