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:
DBHOST=db-postgresql-nyc3-32178-do-user-7115232-0.db.ondigitalocean.com
DB
PORT=25060
DBUSER=<username>
DB
PASSWORD=<password>
DBDATABASE=<database>
DB
SCHEMA=<schema>
DBPOOLMIN = 5
DBPOOLMAX = 5

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.

×
1 answer

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

@vikramkh did you found any solution yet?

Submit an Answer