Zerkley
Getting error 503 when trying to make requests to backend hosted in Railway
As the title says, I can't make any requests to my database since it always returns error 503. I have correctly set the port to be const port = process.env.PORT || 3000; and app.listen(port, "0.0.0.0", () => {
console.log("server started on port 3000");
});
The credentials to my database(MongoDB) are correct since I could use the requests with no problems when I started the server locally, it's when I host it on railway that it stops me, any ideas?
13 replies