Question

Unhandled Error that occurs only sometimes

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

Subscribe
Share

Submit an 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.

Yes, I am also getting a similar issue but with MySQL.

@vikramkh did you found any solution yet?