Report this

What is the reason for this report?

Unhandled Error that occurs only sometimes

Posted on March 4, 2020

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.

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

@vikramkh did you found any solution yet?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.