3 months ago
Added a custom domain to the API service, but users from Pakistan are not receiving API responses. What could be the reason?
We’re not seeing any logs in the console, but the request times out with a ‘took too long to respond’ error. The API works correctly when accessed using a VPN from another country. It was functioning earlier and stopped recently
Pinned Solution
3 months ago
pakistan is likely blocking .up.railway.app ; This isn't a Railway issue Railway cannot do anything about ISP-level blocks imposed by local firewalls, so you should add a custom domain (cname to your service) and front it with cloudflare so traffic bypasses the ISP-level block; that’s why you see no logs
9 Replies
3 months ago
Can you describe a bit more? What HTTP error codes are they receiving? Are there any errors in your deployment logs?
0x5b62656e5d
Can you describe a bit more? What HTTP error codes are they receiving? Are there any errors in your deployment logs?
3 months ago
We’re not seeing any logs in the console, but the request times out with a ‘took too long to respond’ error. The API works correctly when accessed using a VPN from another country. It was functioning earlier and stopped recently
3 months ago
Does it still work with a VPN? Or does it time out now?
0x5b62656e5d
Does it still work with a VPN? Or does it time out now?
3 months ago
The APIs are not working from Pakistan, but they work correctly from other countries,
I’ve attached a screenshot showing the API response when accessed from Pakistan.
Attachments
3 months ago
pakistan is likely blocking .up.railway.app ; This isn't a Railway issue Railway cannot do anything about ISP-level blocks imposed by local firewalls, so you should add a custom domain (cname to your service) and front it with cloudflare so traffic bypasses the ISP-level block; that’s why you see no logs
Status changed to Solved brody • 3 months ago
ilyassbreth
pakistan is likely blocking .up.railway.app ; This isn't a Railway issue Railway cannot do anything about ISP-level blocks imposed by local firewalls, so you should add a custom domain (cname to your service) and front it with cloudflare so traffic bypasses the ISP-level block; that’s why you see no logs
3 months ago
used custom domain
Attachments
Status changed to Awaiting Railway Response Railway • 3 months ago
3 months ago
then pakistan is blocking or dropping the traffic at isp level (dns/ip/dpi), so it never reaches railway. proxy the domain through cloudflare (orange cloud on, different dns / edge) or it’ll keep timing out; vpn works because it exits pakistan first
ilyassbreth
then pakistan is blocking or dropping the traffic at isp level (dns/ip/dpi), so it never reaches railway. proxy the domain through cloudflare (orange cloud on, different dns / edge) or it’ll keep timing out; vpn works because it exits pakistan first
3 months ago
My project has been hosted for the past three months and was working fine in Pakistan during that time. This issue started only today, which is why I’m confused
3 months ago
Hello,
ilyassbreth is correct, your ISP is blocking you, not Railway. Unfortunately, there is nothing we can do on our side about the firewalls you are behind.
Status changed to Awaiting User Response Railway • 3 months ago
Status changed to Solved Anonymous • 3 months ago