Uptimerobot with express not working

I have a discord bot that needs to get pinged every 5 minutes to stay online. I am using uptimerobot and it has been working so far, but after an amount of hours, generally overnight, the bot stops working.
This is the code I’m using on the bot:

const express = require(“express”);
const app = express();
app.get("/", (request, response) => {
console.log(“Ping received!”);
// listen for requests :slight_smile:
const listener = app.listen(process.env.PORT, function() {
console.log('Your app is listening on port ’ + listener.address().port);

I can see in the console that I’m receiving pings, but for some reason it just stops receiving pings after a point, and I don’t get “Ping receive!” in the console anymore. Uptimerobot says it’s still on, so it’s still pinging it.

1 Like

Same here, goes down after approximately ~12 hours of uptime even though Uptime Robot says that its still pinging and online.

Uptimerobot seems to be having problems day in and day out. Maybe move to a different project for hosting?
Options include awake.glitch.me & statify.glitch.me

1 Like