R
Railwayβ€’2y ago
FacundoS

Error 503

Hey! I'm trying to deploy my local application to Railways servers but I keep getting this error, it works fine locally. I have enabled cors to allow cross origin too but nothing seems to work,
20 Replies
Percy
Percyβ€’2y ago
Project ID: N/A
FacundoS
FacundoSOPβ€’2y ago
N/A 31ab9d7f-fa2a-409c-9f7f-d741e6f209a1
Unknown User
Unknown Userβ€’2y ago
Message Not Public
Sign In & Join Server To View
FacundoS
FacundoSOPβ€’2y ago
It didn't worked for me, I still have the same error 😦
Brody
Brodyβ€’2y ago
Show me the bit of code that starts listening please
FacundoS
FacundoSOPβ€’2y ago
I added env variables on Railways app too
Brody
Brodyβ€’2y ago
Show me the screenshot of the variables (keep them hidden tho)
FacundoS
FacundoSOPβ€’2y ago
I only have this one
Brody
Brodyβ€’2y ago
Lol you can show the port
FacundoS
FacundoSOPβ€’2y ago
Oh my bad, it's port 3500 And this is my deploy log
FacundoS
FacundoSOPβ€’2y ago
Brody
Brodyβ€’2y ago
just remove APP_PORT from your service variables
const port = process.env.PORT || 3500
const port = process.env.PORT || 3500
Then use this const variable to listen on
FacundoS
FacundoSOPβ€’2y ago
Nothing, I'm still getting the same error, someone in another thread said that it's a Railways error 😦 Thanks Brody!
Brody
Brodyβ€’2y ago
very unlikely, show me this again please
FacundoS
FacundoSOPβ€’2y ago
I'm using node-mailer, maybe is that the problem?
Brody
Brodyβ€’2y ago
please retake this same screenshot
FacundoS
FacundoSOPβ€’2y ago
Brody
Brodyβ€’2y ago
that looks good, show me deployment logs please?
FacundoS
FacundoSOPβ€’2y ago
now it's working, I don't know how hahaha Thanks again man
Brody
Brodyβ€’2y ago
ah might have just taken a bit for that new deploy to get switched in
Want results from more Discord servers?
Add your server