503 Application failed to respond

Hello, can anyone help me with the 503 issue. I'm trying to deploy Express.js app to railway but get error status code 503. I've also tried implementing what's in https://docs.railway.app/troubleshoot/fixing-common-errors but still getting the same error. TIA
Railway Docs
Fixing Common Errors | Railway Docs
Documentation for Railway
12 Replies
Percy
Percyβ€’2y ago
Project ID: 1dc92fc5-3b33-481e-9640-33ac9a1a21c3
cperdiansyah
cperdiansyahOPβ€’2y ago
1dc92fc5-3b33-481e-9640-33ac9a1a21c3
Brody
Brodyβ€’2y ago
what have you set HOST to?
cperdiansyah
cperdiansyahOPβ€’2y ago
0.0.0.0
Brody
Brodyβ€’2y ago
show me a screenshot of the deploy logs please
cperdiansyah
cperdiansyahOPβ€’2y ago
Here's a screenshot of the deploy logs, it will be like this until it crashes
Brody
Brodyβ€’2y ago
whats it trying to connect to at port 27017?
cperdiansyah
cperdiansyahOPβ€’2y ago
gosh, I forgot to change the env for mongoDB from local to production env πŸ˜…. Thank you very much
Brody
Brodyβ€’2y ago
why are you string interpolation a single variable, you can just hardcode 0.0.0.0
cperdiansyah
cperdiansyahOPβ€’2y ago
yes, it should work like that. Previously I used it, but it still doesn't work. I tried one by one the suggestions and methods in this discord discussion with the same problem (503), including using string interpolation. I thought the problem was there, apparently I forgot to change the env variable for mongoDB only πŸ˜…
Brody
Brodyβ€’2y ago
you are trying to interpolate a single variable with no additional text, it makes absolutely zero sense along with a very odd way of printing two strings
cperdiansyah
cperdiansyahOPβ€’2y ago
okay, thanks for the advice. I'll try to make it better
Want results from more Discord servers?
Add your server