internal URLs not working

joeypedicini92
PRO

9 months ago

I'm having trouble making http requests between node services using internal urls. when I use the external urls they communicate just fine.

Solved

0 Replies

joeypedicini92
PRO

9 months ago

db725181-006d-41c4-98b5-38a46a6a74b7


joeypedicini92
PRO

9 months ago

the service is never being contacted there are no logs coming from that service


9 months ago

Does your app listen on IPv6? Internal/Private networking only works with IPv6 https://docs.railway.com/guides/private-networking


joeypedicini92
PRO

9 months ago

ah that might be it thank you


joeypedicini92
PRO

9 months ago

that seemed to do the trick to connect internally but now I can't connect externally. need to debug more should the URL change at all now for external connections?


9 months ago

I am afraid that I can't help you any further than this.

It may be related to the paragraph below, which has been cited from the docs above.

Note: If your application needs to be accessible over both private and public networks, your application server must support dual stack binding. Most servers handle this automatically when listening on ::, but some, like Uvicorn, do not.


joeypedicini92
PRO

9 months ago

yeah I did do that. hmm I'll take a look and respond here when i figure it out for anyone in the future who comes across this


joeypedicini92
PRO

9 months ago

as far as i'm aware node+express supports dual stack binding


9 months ago

yes it does, please link to the service in question


joeypedicini92
PRO

9 months ago

project id: db725181-006d-41c4-98b5-38a46a6a74b7 service authentication


joeypedicini92
PRO

9 months ago

currently can connect internally from the API service, but externally getting 502s


9 months ago

node is running on port 5000 not 8080


9 months ago

check your target port for the domain


joeypedicini92
PRO

9 months ago

🤦‍♂️


joeypedicini92
PRO

9 months ago

thank you very much


9 months ago

no problem!


joeypedicini92
PRO

9 months ago

lol sometimes the problem is staring right in front of you


9 months ago

sometimes haha


joeypedicini92
PRO

9 months ago

but im curious how it was working before i made the code change to support the dual binding


joeypedicini92
PRO

9 months ago

same port


9 months ago

before you where listening on port 8080


9 months ago

idealy you still should be, but thats besides the point


joeypedicini92
PRO

9 months ago

hmm ok. well either way appreciate the help @Brody @uxuz


9 months ago

happy to help, and thank you uxuz for the initial solution!


9 months ago

!s


Status changed to Solved brody 9 months ago


internal URLs not working - Railway Help Station