Requests to backend URL return 404 with no logs in Railway

himanshu-sharmav
HOBBY

3 days 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?

Solved$10 Bounty

31 Replies

Railway
BOT

3 days ago


himanshu-sharmav
HOBBY

3 days ago

No this doesn't help.


3 days 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 3 days ago


clashing
FREETop 1% Contributor

2 days 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


himanshu-sharmav
HOBBY

2 days ago

Yes the endpoints are working with certain ISPs like airtel and others.

These are updated endpoints

https://choolhachawka-production.up.railway.app/


a day 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?


himanshu-sharmav
HOBBY

a day ago

this is the error


himanshu-sharmav

this is the error

clashing
FREETop 1% Contributor

a day 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


himanshu-sharmav
HOBBY

a day ago


It isn't just on mozilla, for instance this is the screenshot of chrome. Also the public networking screenshots are attached


himanshu-sharmav

It isn't just on mozilla, for instance this is the screenshot of chrome. Also the public networking screenshots are attached

clashing
FREETop 1% Contributor

a day 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

clashing
FREETop 1% Contributor

a day 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


himanshu-sharmav
HOBBY

a day 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

clashing
FREETop 1% Contributor

a day ago

Do let me know if that helps. Its the only resort now


himanshu-sharmav
HOBBY

a day ago

yaa gonna implement that and will update you.


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!


himanshu-sharmav
HOBBY

a day ago

This just gives this response

Attachments


himanshu-sharmav
HOBBY

21 hours 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?


clashing
FREETop 1% Contributor

21 hours ago

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 (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


himanshu-sharmav
HOBBY

21 hours 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 the cname I added isn't gonna verify but if I do with choolhachowka.com which I own it works.

clashing
FREETop 1% Contributor

21 hours 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 (dot should be there between the subdomain name and domain), you are missing thatPlease provide the screenshot of the domain where you have the subdomain being listed. It's a straight-forward process

clashing
FREETop 1% Contributor

21 hours ago

Do let me know once you are done with that


himanshu-sharmav
HOBBY

20 hours 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#fcrfAs 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 PORTThen 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

clashing
FREETop 1% Contributor

20 hours 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


himanshu-sharmav
HOBBY

20 hours ago

I by mistake marked mine


clashing

https://station.railway.com/questions/dns-configuration-issue-for-custom-domai-10696e8a#fcrfAs 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 PORTThen 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

clashing
FREETop 1% Contributor

20 hours 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


himanshu-sharmav
HOBBY

18 hours ago

Listen its still not working with some ISPs like JIO


clashing
FREETop 1% Contributor

18 hours ago

What's the url!


himanshu-sharmav
HOBBY

17 hours ago

Nope its was some ssl issue. Yaa its been fixed


himanshu-sharmav
HOBBY

17 hours ago

Brody please mark clashing solution as accepted.


Status changed to Open chandrika about 16 hours ago


himanshu-sharmav

Brody please mark clashing solution as accepted.

chandrika
EMPLOYEE

16 hours ago

Hey Himanshu, I've opened the bounty up again, you can accept the solution you'd like


Status changed to Solved brody about 16 hours ago


chandrika

Hey Himanshu, I've opened the bounty up again, you can accept the solution you'd like

himanshu-sharmav
HOBBY

14 hours ago

The thread says it is solved I can't see the option to bounty up.


Status changed to Awaiting Railway Response Railway about 14 hours ago


himanshu-sharmav
HOBBY

14 hours ago

To clashing


Status changed to Solved brody about 11 hours ago