R
Railway9mo 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
Percy9mo ago
Project ID: 6e41b675-08ce-4b50-a9ac-760fd5c4f279
TonyS
TonyS9mo ago
6e41b675-08ce-4b50-a9ac-760fd5c4f279
Brody
Brody9mo 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
Brody9mo ago
if that's the port that service listens on then yes
TonyS
TonyS9mo ago
yeh yeh okkk i ll try ok so this is the correct port but still not works
TonyS
TonyS9mo ago
No description
TonyS
TonyS9mo ago
im just removed railway.internal this time and add the correct port
Brody
Brody9mo ago
how do know thats the correct port
TonyS
TonyS9mo ago
here
TonyS
TonyS9mo ago
No description
TonyS
TonyS9mo ago
this is the api-ecompleto port
Brody
Brody9mo 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
TonyS9mo ago
ok i ll try
Brody
Brody9mo ago
its also worth noting that your ecompleto service would probably need to listen on the host "::"