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.
0 Replies
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
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.
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
9 months ago
yes it does, please link to the service in question
project id: db725181-006d-41c4-98b5-38a46a6a74b7 service authentication
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
9 months ago
no problem!
9 months ago
sometimes haha
but im curious how it was working before i made the code change to support the dual binding
9 months ago
before you where listening on port 8080
9 months ago
idealy you still should be, but thats besides the point
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