Custom domain verified but returns 502 — edge not routing to service
ijaffrey
PROOP

20 hours ago

Custom domain buildwithpatrick.io shows verified/green on the patrick service, DNS resolves correctly to the CNAME target, but all external HTTPS requests to the domain return 502. Internal healthchecks to the same deployment succeed continuously. No external requests are appearing in the service's deploy logs at all — the edge isn't forwarding traffic to the container.

$20 Bounty

4 Replies

Railway
BOT

20 hours ago

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

Status changed to Open Railway about 20 hours ago


20 hours ago

Does the generated domain works? If the generated domain didn't work too, Your app may not bind the address to 0.0.0.0


Make sure your domain is mapped to the same port your app is listening on.


ijaffrey
PROOP

8 hours ago

Thanks guys.

Confirmed via deploy logs: Uvicorn running on http://[::]:8000 — wildcard bind, not localhost. Domain is configured for the same port (8000). Internal healthchecks succeed continuously (::1 requests, 200 OK, every few minutes for 2+ days). But zero external requests appear in the logs — not even failed ones. Domain shows verified/green in the dashboard, DNS is correct and unproxied. It looks like the edge isn't forwarding traffic to this deployment at all.


ijaffrey

Thanks guys. Confirmed via deploy logs: Uvicorn running on http://[::]:8000 — wildcard bind, not localhost. Domain is configured for the same port (8000). Internal healthchecks succeed continuously (::1 requests, 200 OK, every few minutes for 2+ days). But zero external requests appear in the logs — not even failed ones. Domain shows verified/green in the dashboard, DNS is correct and unproxied. It looks like the edge isn't forwarding traffic to this deployment at all.

Try to change your start command to uvicorn main:app --host 0.0.0.0 --port $PORT, so the app binds to IPv4 only, and uses the PORT env variable (make sure to set PORT=8000 in your service variables). Also, does the Railway generated domain work?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...