10 months ago
I've deployed a Django backend on Railway, and the generated URL returns a 404 error on access. However, no logs are generated in the service dashboard, which suggests the request isn’t reaching my app container. I’ve already verified port binding (0.0.0.0:$PORT), disabled ad blockers, and confirmed it's not a CORS or CSRF issue. It works on some networks (like Airtel) but fails on others. Any idea what could cause this edge-level routing failure?
Pinned Solution
10 months ago
https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf
As mentioned in this post:
- Create a subdomain like: dev-api.choolhachowka.com (subdomain & the domain should be separated by a dot)
- For the deployed service in Railway, select it, go to Settings -> Public Networking -> Add Custom Domain -> Provide the subdomain (without https or www) -> Provide the correct PORT
- Then a CNAME record would be shown to you, its key would be the subdomain name & there would be a unique value. Copy the @DNS record, and after sometime the same would be fetched by the Rilway deployment.
Do refer the post that I linked here, it contains everything. I hope that helps you
31 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 classic 'Application failed to respond' error - Flask App
- 🧵 Internal Networking Issue: Prometheus Cannot Connect to Django App Despite Correct Configuration
- 🧵 Application failed to respond after successful deployment - FastAPI
- 🧵 404 Error
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
No this doesn't help.
10 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 10 months ago
10 months ago
Can you please confirm if you configure healthcheckup endpoint, is it working? https://station.railway.com/questions/node-js-service-failing-to-deploy-with-s-dc58e402#mk2w
10 months ago
Yes the endpoints are working with certain ISPs like airtel and others.
These are updated endpoints
10 months ago
Hello,
Can you please provide a screenshot of your browser window when you open that URL that you say returns a 404 for you?
10 months ago
this is the error
Attachments
himanshu-sharmav
 this is the error
10 months ago
Himanshu, can you confirm whether you are only seeing this error on Mozilla Firefox, or any other browser too? If yes, then please provide of the same browser window too, & provide the public networking snippet of the Railway deployment
10 months ago
It isn't just on mozilla, for instance this is the screenshot of chrome. Also the public networking screenshots are attached
Attachments
himanshu-sharmav
 It isn't just on mozilla, for instance this is the screenshot of chrome. Also the public networking screenshots are attached
10 months ago
Oh, let me have a look. Which ISP is posing issues, specifically? Because I tried it with 2 ISPs, and it worked fine
Could you provide the initial configuration lines for your server
himanshu-sharmav
 It isn't just on mozilla, for instance this is the screenshot of chrome. Also the public networking screenshots are attached
10 months ago
Himanshu, the best thing to bypass this ISP constraint is to use CUSTOM DOMAINS (sub-domain to be specific)
You can refer to my post to get started: https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf
10 months ago
To be specific with JIO , and many wifi routers.
clashing
Himanshu, the best thing to bypass this ISP constraint is to use CUSTOM DOMAINS (sub-domain to be specific) You can refer to my post to get started: <https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf>
10 months ago
Do let me know if that helps. Its the only resort now
10 months ago
Hi. Are you able to run this command and share the output with me?
bash <(curl -sL https://gist.githubusercontent.com/half0wl/6763f8e20bca149c131324a8546268ab/raw/ac6be4db78aebb2e70b2537f0ff03e253c0786c1/rlwy-route-debug.sh)You can paste it here, or email ray@railway.com if you'd like to keep this thread public and the information private.
Thanks!
10 months ago
I own the domain choolhachowka.com and the cname is set to it for the frontend deployed to vercel so as a custom domain like dev-apichoolhachowka.com can I use it by defining on custom domain in railway and setting the cname or have to buy another?
10 months ago
https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf
As mentioned in this post:
- Create a subdomain like: dev-api.choolhachowka.com (subdomain & the domain should be separated by a dot)
- For the deployed service in Railway, select it, go to Settings -> Public Networking -> Add Custom Domain -> Provide the subdomain (without https or www) -> Provide the correct PORT
- Then a CNAME record would be shown to you, its key would be the subdomain name & there would be a unique value. Copy the @DNS record, and after sometime the same would be fetched by the Rilway deployment.
Do refer the post that I linked here, it contains everything. I hope that helps you
10 months ago
when I am using dev-apichoolhachowka.com the cname I added isn't gonna verify but if I do with choolhachowka.com which I own it works.
himanshu-sharmav
when I am using [dev-apichoolhachowka.com](http://dev-apichoolhachowka.com) the cname I added isn't gonna verify but if I do with [choolhachowka.com](http://choolhachowka.com) which I own it works.
10 months ago
It should be dev-api.choolhachowka.com (dot should be there between the subdomain name and domain), you are missing that
Please provide the screenshot of the domain where you have the subdomain being listed. It's a straight-forward process
clashing
It should be [dev-api.choolhachowka.com](http://dev-apichoolhachowka.com) (dot should be there between the subdomain name and domain), you are missing that Please provide the screenshot of the domain where you have the subdomain being listed. It's a straight-forward process
10 months ago
Do let me know once you are done with that
10 months ago
Yaa the custom domain link thing works, now it doesn't block it.
Thanks for the help.
clashing
<https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf> As mentioned in this post: 1. Create a subdomain like: [**dev-api.choolhachowka.com**](http://dev-api.choolhachowka.com) (subdomain & the domain should be separated by a **dot**) 2. For the deployed service in Railway, select it, go to Settings -> Public Networking -> Add Custom Domain -> Provide the subdomain (without https or www) -> Provide the correct PORT 3. Then a CNAME record would be shown to you, its key would be the subdomain name & there would be a unique value. Copy the **@DNS record**, and after sometime the same would be fetched by the Rilway deployment. Do refer the post that I linked here, it contains everything. I hope that helps you
10 months ago
Great Himanshu. But I am sure, that the referenced post of mine helped you in getting that stuff working. So, you have to mark that as the solution
clashing
<https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrf> As mentioned in this post: 1. Create a subdomain like: [**dev-api.choolhachowka.com**](http://dev-api.choolhachowka.com) (subdomain & the domain should be separated by a **dot**) 2. For the deployed service in Railway, select it, go to Settings -> Public Networking -> Add Custom Domain -> Provide the subdomain (without https or www) -> Provide the correct PORT 3. Then a CNAME record would be shown to you, its key would be the subdomain name & there would be a unique value. Copy the **@DNS record**, and after sometime the same would be fetched by the Rilway deployment. Do refer the post that I linked here, it contains everything. I hope that helps you
10 months ago
Can't you undo that?
If not, I am sure the coordinators/admins will mark the post which I have tagged here as the solution as it helped you ✌
10 months ago
Listen its still not working with some ISPs like JIO
10 months ago
What's the url!
10 months ago
Brody please mark clashing solution as accepted.
Status changed to Open chandrika • 10 months ago
himanshu-sharmav
Brody please mark clashing solution as accepted.
10 months ago
Hey Himanshu, I've opened the bounty up again, you can accept the solution you'd like
Status changed to Solved brody • 10 months ago
chandrika
Hey Himanshu, I've opened the bounty up again, you can accept the solution you'd like
10 months ago
The thread says it is solved I can't see the option to bounty up.
Status changed to Awaiting Railway Response Railway • 10 months ago
Status changed to Solved brody • 10 months ago



