2 months 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.
Pinned Solution
2 months ago
Is the hostname on the emailed link correct? Make sure you’re using the RAILWAY_PUBLIC_DOMAIN variable.
10 Replies
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 months ago
0x5b62656e5d
Can you share the URL?
2 months ago
acountability-app-production.up.railway.app
mayori
.
2 months ago
it's not on. (shows active meaning that it's not) you what i mean
2 months ago
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
2 months ago
Yeah, I read the status code wrong, my bad
mayori
Yeah, I read the status code wrong, my bad
2 months 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.
2 months 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.
2 months ago
Is the hostname on the emailed link correct? Make sure you’re using the RAILWAY_PUBLIC_DOMAIN variable.
2 months 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 • about 2 months ago
