R
Railway15mo 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
Percy15mo ago
Project ID: 6e41b675-08ce-4b50-a9ac-760fd5c4f279
TonyS
TonySOP15mo ago
6e41b675-08ce-4b50-a9ac-760fd5c4f279
Brody
Brody15mo 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
Brody15mo ago
if that's the port that service listens on then yes
TonyS
TonySOP15mo ago
yeh yeh okkk i ll try ok so this is the correct port but still not works
TonyS
TonySOP15mo ago
No description
TonyS
TonySOP15mo ago
im just removed railway.internal this time and add the correct port
Brody
Brody15mo ago
how do know thats the correct port
TonyS
TonySOP15mo ago
here
TonyS
TonySOP15mo ago
No description
TonyS
TonySOP15mo ago
this is the api-ecompleto port
Brody
Brody15mo 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
TonySOP15mo ago
ok i ll try
Brody
Brody15mo 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