Sometimes when I make an API request, my API returns the error: Unhandled error in GET /api/endpoint 500 Error: getaddrinfo ENOTFOUND db-postgresql-nyc3-32178-do-user-7115232-0.db.ondigitalocean.com db-postgresql-nyc3-32178-do-user-7115232-0.db.ondigitalocean.com:25060 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
I’m using Loopback 4.x (Express framwork) and this is my configuration: DB_HOST=db-postgresql-nyc3-32178-do-user-7115232-0.db.ondigitalocean.com DB_PORT=25060 DB_USER=<username> DB_PASSWORD=<password> DB_DATABASE=<database> DB_SCHEMA=<schema> DB_POOL_MIN = 5 DB_POOL_MAX = 5
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!