getaddrinfo EAI_AGAIN error when connecting to Postgres DB

Ravichandran, Gopi Krishna 161 Reputation points
2024-06-19T07:02:24.04+00:00

Hi,

One of our team is getting the below error when their API hosted in AKS connecting to Postgres DB (Configured using Private endpoint). This error is generated at random requests, say in a day 50 requests fails due to this. I verified the internal routes and everything looks to be good. Sometimes DNS fails. Anyone has any guess about this error (Attached screenshot for info).

image (6).png

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,145 questions
Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.