R
Railway12mo ago
AlanVT

Application failed to respond

No description
No description
No description
No description
15 Replies
Percy
Percy12mo ago
Project ID: N/A
Fragly
Fragly12mo ago
Are you listening on the port railway provides? Take a look at this: https://docs.railway.app/guides/fixing-common-errors
AlanVT
AlanVTOP12mo ago
the port 8080
Fragly
Fragly12mo ago
You need to listen on the port railway gives you, check the link I sent you
AlanVT
AlanVTOP12mo ago
ok but where does it says which is the provided port?
Fragly
Fragly12mo ago
It's an environment variable named PORT, please check the link I sent you
AlanVT
AlanVTOP12mo ago
ok i'll check
AlanVT
AlanVTOP12mo ago
here?
No description
Fragly
Fragly12mo ago
It doesn't display there by default since it's a Railway provided variable if you're running something like a NodeJS app then you can get the port through:
const port = process.env.PORT || 3000
const port = process.env.PORT || 3000
AlanVT
AlanVTOP12mo ago
No description
AlanVT
AlanVTOP12mo ago
but still the same it fixed!!!
Fragly
Fragly12mo ago
You wouldn't want to clarify the port, it's always recommended to let railway give you a random generated one but if you have to use a specific port then that'll work fine too
AlanVT
AlanVTOP12mo ago
thank you!!!
Fragly
Fragly12mo ago
no problem! although I don';t recommend you specify the port unless there's no other option
AlanVT
AlanVTOP12mo ago
ok
Want results from more Discord servers?
Add your server