#Application Failed to respond (503)
1 messages · Page 1 of 1 (latest)
Project ID: 34577167-60a7-4440-ade4-27689dd1599b
34577167-60a7-4440-ade4-27689dd1599b
please give this a read https://docs.railway.app/guides/fixing-common-errors
here is my code, const port = process.env.PORT || 3000;
app.listen(port, "0.0.0.0", () => {
console.log(Server Is Running On http://localhost:${port});
});
and... still didnt work
do you have a service variable named PORT?
IT SOLVED??!!, FK MEEEEE I FORGET DO A LITTLE THING, ALSO THAK YOU Brody you fast respon
that was just a simple yes or no question, it wasn't meant to be an actionable request
your code is clearly setup to listen on the environment variable PORT that railway automatically assigns at random on every deployment, but still logged that it was listening on 3000, this is concerning because it makes me think you are running old code from before you implemented the process.env method
tl;dr with the code you showed you should not need to specify a PORT service variable, and the fact that when you did and it worked likely means there's a bigger issue at play here
i got new problem 😦
and what's that
my api didnt work properly, i think its db issue... when im trying to add data to my table its send null
are you using the data tab in railway
yea
don't use that, use a proper database client like dbgate
alr, let me try