Unable to hit private service

One of my apps is logging the following:
{"time":"2023-07-28T09:03:40.20473826Z","level":"ERROR","msg":"unable to track user","error":"failed to do POST to http://users.railway.internal/users/2300932: Put \"http://users.railway.internal/users/2300932\": dial tcp [fd12:a473:f643::3b:ff48:63a0]:80: connect: connection refused","username":"manzanit0"}
{"time":"2023-07-28T09:03:40.20473826Z","level":"ERROR","msg":"unable to track user","error":"failed to do POST to http://users.railway.internal/users/2300932: Put \"http://users.railway.internal/users/2300932\": dial tcp [fd12:a473:f643::3b:ff48:63a0]:80: connect: connection refused","username":"manzanit0"}
The service does exist (see screenshot) AND this broke overnight; as in, no changes there. The error message is confusing because it mentiones both a POST and a PUT, but ignore that. That's just a typo in the actual log.
No description
5 Replies
Percy
Percy14mo ago
Project ID: 4422bada-2d1e-4333-b644-ccf8d3033e95
manzanit0
manzanit014mo ago
4422bada-2d1e-4333-b644-ccf8d3033e95
Brody
Brody14mo ago
what port is this users service listening on
manzanit0
manzanit013mo ago
Hey! Sorted this out – I wasn't aware that we had to set the port. In my mind the users.railway.internal DNS leveraged the port provided in the PORT env var. It's all good now.
Brody
Brody13mo ago
yep this is a local network so you need to specify the port in the url the same way you would when you run your service locally
Want results from more Discord servers?
Add your server