R
Railway14mo ago
TonyS

Error comunicate with internal servicecs

I'm trying to make a post on a route that is in an internal service on railway = api-ecompleto.railway.internal , but it's not working, I tried with http, https and without, follow the code:
No description
15 Replies
Percy
Percy14mo ago
Project ID: 6e41b675-08ce-4b50-a9ac-760fd5c4f279
TonyS
TonyS14mo ago
6e41b675-08ce-4b50-a9ac-760fd5c4f279
Brody
Brody14mo ago
you are missing a port in that url these internal services may get a nice domain, but they are still very much private addresses without any sort of proxy
Brody
Brody14mo ago
if that's the port that service listens on then yes
TonyS
TonyS14mo ago
yeh yeh okkk i ll try ok so this is the correct port but still not works
TonyS
TonyS14mo ago
No description
TonyS
TonyS14mo ago
im just removed railway.internal this time and add the correct port
Brody
Brody14mo ago
how do know thats the correct port
TonyS
TonyS14mo ago
here
TonyS
TonyS14mo ago
No description
TonyS
TonyS14mo ago
this is the api-ecompleto port
Brody
Brody14mo ago
that means you are listening on a random port railway assigns you, and 4001 when developing locally set a PORT variable to 4001 in the ecompleto service variables
TonyS
TonyS14mo ago
ok i ll try
Brody
Brody14mo ago
its also worth noting that your ecompleto service would probably need to listen on the host "::"
Want results from more Discord servers?
Add your server