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:
15 Replies
Project ID:
6e41b675-08ce-4b50-a9ac-760fd5c4f279
6e41b675-08ce-4b50-a9ac-760fd5c4f279
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
oh sure, like this ?
http://api-ecompleto.railway.internal:3002/order/deliveryOrder
if that's the port that service listens on then yes
yeh yeh
okkk
i ll try
ok so this is the correct port
but still not works
im just removed railway.internal this time
and add the correct port
how do know thats the correct port
here
this is the api-ecompleto port
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
ok i ll try
its also worth noting that your ecompleto service would probably need to listen on the host "::"