My public end point call is yielding Resource temporarily unavailable (xxx.dev 443)
centuryhopper
HOBBYOP

2 months ago

When I call the same endpoint using a rest client tool, I get back the desired result, but when my deployed railway app calls it, I get the error in my title...

I also noticed that my custom domain for my endpoint (shown in attached screenshot) has been "wating for dns update" for at least 3 days now. The domain does lead to the desired webpage, yet when another deployed railway app of mine calls an endpoint of that domain, the issue occurs.

Attachments

Solved$10 Bounty

Pinned Solution

ilyassbreth
FREE

2 months ago

first thing , click "show instructions" next to "waiting for dns update" on leoums.dev in railway. that will show you exactly what cname value railway expects. compare it with your namecheap settings (10s7auml.up.railway.app) and make sure they match perfectly

if they already match and it's still stuck on "waiting for dns update" after 3 days, that's usually a namecheap issue with root domain cnames. switching to cloudflare dns (free) fixes this ; it's what a lot of railway users do when namecheap doesn't play nice. just point your namecheap nameservers to cloudflare and set up the cnames there

Attachments

15 Replies

ilyassbreth
FREE

2 months ago

are both your services (the one making the call and leoums.dev) in the same railway project?

if yes , the most common cause of this exact error is trying to call a service's public domain from another railway service in the same project. railway's networking doesn't handle that well. the recommended solution is to use private networking instead; instead of calling https://leoums.dev/endpoint use http://[servicename].railway.internal:[PORT]/endpoint

it would explain why your rest client works (external call over public internet) but your deployed app doesn't (internal call that should use private network)

if they're in different projects, then this wouldn't apply and we'd need to look at other issues

for the "waiting for dns update" thing - that's usually just a display bug if the domain actually loads when you visit it. dns can take 24-72 hours to fully propagate

let me know if they're in the same project and i can give you more specific steps to try. don't want to suggest the wrong thing if your setup is different than what i'm thinking


ilyassbreth

are both your services (the one making the call and leoums.dev) in the same railway project?if yes , the most common cause of this exact error is trying to call a service's public domain from another railway service in the same project. railway's networking doesn't handle that well. the recommended solution is to use private networking instead; instead of calling https://leoums.dev/endpoint use http://[servicename].railway.internal:[PORT]/endpointit would explain why your rest client works (external call over public internet) but your deployed app doesn't (internal call that should use private network)if they're in different projects, then this wouldn't apply and we'd need to look at other issuesfor the "waiting for dns update" thing - that's usually just a display bug if the domain actually loads when you visit it. dns can take 24-72 hours to fully propagatelet me know if they're in the same project and i can give you more specific steps to try. don't want to suggest the wrong thing if your setup is different than what i'm thinking

centuryhopper
HOBBYOP

2 months ago

my other service is making the call to leoums.dev and I switched it to call the private networking and it does solve that issue a bit but the other issue is that I really need it to call leoums.dev since that is the domain that i have linked to a email service client called "Resend" that will send out emails and calling the private network url wouldn't work with sending out emails.


ilyassbreth
FREE

2 months ago

so that dns error is your whole problem leoums.dev literally doesn't exist in dns right now, which is why railway can't verify it and why nothing can connect to it

here's what you need to do:

go to wherever you bought leoums.dev and check your dns settings. you need to add a cname record pointing to the railway url they gave you (should look like something.up.railway.app)

if you're trying to set up the root domain (just leoums.dev without www), some dns providers don't support that properly. easiest fix is to switch your nameservers to cloudflare (free) - they handle this correctly and railway works perfectly with them

once the dns is actually configured, wait like 10-30 mins, then both issues will be solved - the domain will work and your service will be able to call it for the resend emails

Attachments


ilyassbreth
FREE

2 months ago

what dns provider are you using?


ilyassbreth

so that dns error is your whole problem leoums.dev literally doesn't exist in dns right now, which is why railway can't verify it and why nothing can connect to ithere's what you need to do:go to wherever you bought leoums.dev and check your dns settings. you need to add a cname record pointing to the railway url they gave you (should look like something.up.railway.app)if you're trying to set up the root domain (just leoums.dev without www), some dns providers don't support that properly. easiest fix is to switch your nameservers to cloudflare (free) - they handle this correctly and railway works perfectly with themonce the dns is actually configured, wait like 10-30 mins, then both issues will be solved - the domain will work and your service will be able to call it for the resend emails

centuryhopper
HOBBYOP

2 months ago

im using namecheap for everything. And that's strange that it doesn't work for you. It works for me. Can you prepend that with https://? So https://leoums.dev


centuryhopper

im using namecheap for everything. And that's strange that it doesn't work for you. It works for me. Can you prepend that with https://? So https://leoums.dev

ilyassbreth
FREE

2 months ago

also https://leoums.dev same error


ilyassbreth

also https://leoums.dev same error

centuryhopper
HOBBYOP

2 months ago

ok let me try cloudflare then and get back to you when i get the chance


ilyassbreth
FREE

2 months ago

so that dns error confirms the domain isn't resolving globally, which is why railway can't verify it and why your service can't reach it

can you check your namecheap dns settings and confirm:

  1. you added the exact cname record railway gave you

  2. what record type you used (cname, a record, alias, etc)

  3. whether you set it up for @ (root) or www

some dns providers have issues with certain configurations. once we see your actual setup i can give you more specific guidance. lots of railway users end up using cloudflare dns because it handles everything smoothly, but let's first see what you have configured


ilyassbreth

so that dns error confirms the domain isn't resolving globally, which is why railway can't verify it and why your service can't reach itcan you check your namecheap dns settings and confirm:you added the exact cname record railway gave youwhat record type you used (cname, a record, alias, etc)whether you set it up for @ (root) or wwwsome dns providers have issues with certain configurations. once we see your actual setup i can give you more specific guidance. lots of railway users end up using cloudflare dns because it handles everything smoothly, but let's first see what you have configured

centuryhopper
HOBBYOP

2 months ago

can i screenshot what i have to you? It's not sensitive and therefore safe to share in this public chat, right?


ilyassbreth
FREE

2 months ago

yes, please


ilyassbreth

yes, please

centuryhopper
HOBBYOP

2 months ago

This is from my namecheap advanced dns for leoums.dev

Attachments


ilyassbreth
FREE

2 months ago

first thing , click "show instructions" next to "waiting for dns update" on leoums.dev in railway. that will show you exactly what cname value railway expects. compare it with your namecheap settings (10s7auml.up.railway.app) and make sure they match perfectly

if they already match and it's still stuck on "waiting for dns update" after 3 days, that's usually a namecheap issue with root domain cnames. switching to cloudflare dns (free) fixes this ; it's what a lot of railway users do when namecheap doesn't play nice. just point your namecheap nameservers to cloudflare and set up the cnames there

Attachments


ilyassbreth
FREE

2 months ago

let me in touch


ilyassbreth

let me in touch

centuryhopper
HOBBYOP

2 months ago

okay things work fine now. Looks like cloudflare plays much more nicely with railway than namecheap does. Thank you for your help sir.


ilyassbreth
FREE

2 months ago

i'm happy it works for you


Status changed to Solved brody about 2 months ago


Loading...