Cant resolve internal IP address
cybermb
HOBBYOP

2 years ago

I have a rest API that goes to given URL, does stuff and then returns a response. However, the given URL is a internal address of another service (http://vehichle-inspection-app.railway.internal/). API service is trying to navigate to the given address using puppeteer, however, it cant resolve it (net::ERRNAMENOT_RESOLVED). Any solutions?

Project: cdea38ac-ca4c-4152-9119-5d90e40b3bc4

18 Replies

2 years ago

is the service in the same project?


cybermb
HOBBYOP

2 years ago

Yes


2 years ago

are you on the v2 runtime?


cybermb
HOBBYOP

2 years ago

How to check?


2 years ago

screenshot please


cybermb
HOBBYOP

2 years ago

1265060546999226400


2 years ago

you left out the internal domain in your first message, please add that back



2 years ago

are your services on the v2 runtime


cybermb
HOBBYOP

2 years ago

Found how to check out. Yes, it appears to be v2


2 years ago

how are you able to confirm the two services are in the same project


cybermb
HOBBYOP

2 years ago

1265066778007179500


2 years ago

are you sure you are using the correct domain?


cybermb
HOBBYOP

2 years ago

Im using variable http://${{RAILWAY_PRIVATE_DOMAIN}}


2 years ago

are you making sure to use a port?


cybermb
HOBBYOP

2 years ago

I tried with and without port


cybermb
HOBBYOP

2 years ago

The app service has 2 variables:

  • api service url http://${{puppeteer-pdf-rest.RAILWAY_PRIVATE_DOMAIN}}:3030

  • and url of its own private address http://${{RAILWAY_PRIVATE_DOMAIN}}


cybermb
HOBBYOP

2 years ago

The first one seems to be resolved to ipv6 just fine. Second one is always a private domain that is being sent to api service using node fetch. And that domain doesnt seem to be resolved by that service when trying to navigate back to the app


Loading...