Application error hosting Express server
Hi! This is my first time setting up a Railway project.
I'm trying to host an express server on Railway, and after configuring the port setup, I get an application error when viewing from the Railway generated URL. I followed the instructions here: https://docs.railway.app/deploy/exposing-your-app
Here is my server code:
In Railway, everything deploys correctly and my logs look good:
By setting up that configuration, I was able to generate a Railway URL, however when navigating to that URL, I see an application error:
Any ideas? Thanks!
11 Replies
and then set
PORT
on railway to 3333
easier imohmmm, okay, I can try this. I'm not sure how this is different from what I had, but let's give it a shot!
it sets the port manually instead of relying on the automatic port
Gotcha, unfortunately the error persists, even when specifying the port:
ah ok try
i dont think the
0.0.0.0
is neededOkay interesting. I'll give that a try. That's what I had before, but couldn't trigger the "Domain" section without the 0.0.0.0 per the docs I linked. Lets see...
that worked! Interesting. I wonder if I had just missed the domains section. I must've interpreted the docs wrong. Thanks for the help @neb π !
np!
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
please dont crosspost
you have a dedicated thread for youself now
oh wait this was a while ago
either way
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
nah no worries π
im not the law round here anyways