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 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)

I’m using Loopback 4.x (Express framwork) and this is my configuration: DB_PORT=25060 DB_USER=<username> DB_PASSWORD=<password> DB_DATABASE=<database> DB_SCHEMA=<schema> DB_POOL_MIN = 5 DB_POOL_MAX = 5

Submit an answer

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!

Sign In or Sign Up to Answer

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?