Hi! This is my first time deploying Strapi v4 on render.
Combining information from the Strapi on Render deployment guide and the Strapi v4 documentation, I believe that I have everything configured correctly to have Strapi v4 deployed on render.
However, I am running into a consistent error when running yarn start
:
Error: getaddrinfo ENOTFOUND dpg-c8pv9nfh8vl7rvmq45gg at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
I looked into the error, and I believe that is it DNS related. the dpg...
string is in fact the name of my db instance for this project, and it appears to be saying that node cannot resolve the hostname.
I did a test by adding some logic to my project that would log on build:
const dnscheck = dns.lookup('dpg-c8pv9nfh8vl7rvmq45gg', function (err, addresses, family) {
console.log(`dns err: ${err}`);
console.log(`dns address: ${addresses}`);
});
This code uses Node’s dns module directly to attempt to look up the name of my database, and when I ran this code, it also returned the same ENOTFOUND
error.
This leads me to believe that Render is not properly presenting the name of my db server to my node application. How do I address this?