Requests to backend URL return 404 with no logs in Railway
himanshu-sharmav
FREEOP

4 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?

Solved$10 Bounty

31 Replies

Railway
BOT

4 months ago


himanshu-sharmav
FREEOP

4 months ago

No this doesn't help.


brody
EMPLOYEE

4 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 4 months ago


clashing
FREE

4 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


himanshu-sharmav
FREEOP

4 months ago

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

These are updated endpoints

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


brody
EMPLOYEE

4 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?


himanshu-sharmav
FREEOP

4 months ago

this is the error


himanshu-sharmav

this is the error

clashing
FREE

4 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


himanshu-sharmav
FREEOP

4 months 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
FREE

4 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

clashing
FREE

4 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


himanshu-sharmav
FREEOP

4 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

clashing
FREE

4 months ago

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


himanshu-sharmav
FREEOP

4 months ago

yaa gonna implement that and will update you.


ray-chen
EMPLOYEE

4 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!


himanshu-sharmav
FREEOP

4 months ago

This just gives this response

Attachments


himanshu-sharmav
FREEOP

4 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?


clashing
FREE

4 months 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
FREEOP

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

clashing
FREE

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

4 months ago

Do let me know once you are done with that


himanshu-sharmav
FREEOP

4 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#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
FREE

4 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


himanshu-sharmav
FREEOP

4 months 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
FREE

4 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


himanshu-sharmav
FREEOP

4 months ago

Listen its still not working with some ISPs like JIO


clashing
FREE

4 months ago

What's the url!


himanshu-sharmav
FREEOP

4 months ago

Nope its was some ssl issue. Yaa its been fixed


himanshu-sharmav
FREEOP

4 months ago

Brody please mark clashing solution as accepted.


Status changed to Open chandrika 4 months ago


himanshu-sharmav

Brody please mark clashing solution as accepted.

chandrika
EMPLOYEE

4 months ago

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


Status changed to Solved brody 4 months ago


chandrika

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

himanshu-sharmav
FREEOP

4 months ago

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


Status changed to Awaiting Railway Response Railway 4 months ago


himanshu-sharmav
FREEOP

4 months ago

To clashing


Status changed to Solved brody 4 months ago


Loading...