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?
2 years ago
are you on the v2 runtime?
2 years ago
screenshot please
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
2 years ago
how are you able to confirm the two services are in the same project
2 years ago
are you sure you are using the correct domain?
2 years ago
are you making sure to use a port?
The app service has 2 variables:
api service url
http://${{puppeteer-pdf-rest.RAILWAY_PRIVATE_DOMAIN}}:3030and url of its own private address
http://${{RAILWAY_PRIVATE_DOMAIN}}
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

