Private networking: ENOTFOUND
I have a Nodejs backend server bound to
::
at 3001
. I have added PORT
variable for the service with value 3001
.
My other service, Nodejs BFF, cannot connect to either http://backend-service:3001
or http://backend-service.railway.internal:3001
. I get getaddrinfo ENOTFOUND backend-service
.
Server and BFF are in the same project.
When I add TCP proxy temporarily, it works fine at the proxy address, so the server is live.7 Replies
Project ID:
9723c328-faa5-4bcb-a950-9070892940fd
9723c328-faa5-4bcb-a950-9070892940fd
are you building with nixpacks?
No nixpacks. But it looks like I solved my own problem.
I am using Alpine on the BFF service (consumer).
I needed the private networking Alpine fix:
https://docs.railway.app/reference/private-networking#workaround-for-alpine-based-images
That did it.
well you beat me to it!
thanks Brody
no problem!