"Public domain 404s on a route that returns 200 internally (survives restart/redeploy/domain regen)"
dacoolboyy333
FREEOP

4 days ago

My Express app is deployed with a single replica, single active deployment. A request to a path (e.g. /reset-passcode) returns 200 with the correct HTML when tested from inside the container (fetch('http://localhost:8080/...')), but the exact same path on the public domain returns 404 with Express's default "Cannot GET" message. This persists after: restarting the service, triggering a fresh redeploy, and fully regenerating the public domain (old one deleted, new one issued). Verified from multiple browsers/incognito sessions with cache-busting query params, so it's not client-side or edge caching. x-powered-by: Express is present on the 404 response, and server: railway-hikari / x-railway-edge headers are present. Service: acountability-app, project remarkable-abundance.

Solved$10 Bounty

Pinned Solution

Is the hostname on the emailed link correct? Make sure you’re using the RAILWAY_PUBLIC_DOMAIN variable.

10 Replies

Railway
BOT

4 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 4 days ago


4 days ago

.


Can you share the URL?


0x5b62656e5d

Can you share the URL?

dacoolboyy333
FREEOP

4 days ago

acountability-app-production.up.railway.app


mayori

.

dacoolboyy333
FREEOP

4 days ago

it's not on. (shows active meaning that it's not) you what i mean


I'm able to access it just fine. Try accessing the site from an incognito window.

Also, do you have CDN caching turned on? If so, try disabling it.


dacoolboyy333

it's not on. (shows active meaning that it's not) you what i mean

4 days ago

Yeah, I read the status code wrong, my bad


mayori

Yeah, I read the status code wrong, my bad

dacoolboyy333
FREEOP

4 days ago

all good 👍


0x5b62656e5d

I'm able to access it just fine. Try accessing the site from an incognito window. Also, do you have CDN caching turned on? If so, try disabling it.

dacoolboyy333
FREEOP

4 days ago

I can access it but the issue occurs when you go to the accountability partner after you log in on the top right and save a passcode after creating the passcode then click forget passcode it works and sends email with a link but that link doesn't work.


Is the hostname on the emailed link correct? Make sure you’re using the RAILWAY_PUBLIC_DOMAIN variable.


dacoolboyy333
FREEOP

4 days ago

turns out i was having 2 different links. The one in the variable was different from the one in the network tab. Thanks for the help!


Status changed to Solved mayori 4 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...