Connect to a Private Node Web Service

Hey Render team & @dan @anurag ,

I have 2 Node Web Services set up. 1 is public (Nuxt frontend) and 1 is private (Express backend). I am attempting to make an XHR request to my private backend service and am receiving the following timeout error:

Nov 10 02:33:52 PM  connect ETIMEDOUT
Nov 10 02:33:52 PM  
Nov 10 02:33:52 PM    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1083:14)

However, if I log into the Shell in the Dashboard for my frontend service, I am able to curl the backend just fine. Currently my XHR requests are using the following URL structure: backend-service:11000/get-data.

Is there something I’m missing?


You are able to curl the private service from the shell as the front end server can resolve the private service. The request fails from the front end (browser) as it’s your browser making the request and it cannot resolve the backend url.

Your express app cannot be a private instance if I understand the Render networking setup correctly.

1 Like

Private services can only be accessed by name from within your Render network. You can use the public HTTPS URL in your frontend.