Why a Private Space app fails to look up DNS?

Issue

The app process for a Private Space app intermittently records errors like

getaddrinfo: Temporary failure in name resolution (SocketError)

when trying to establish network connections with external services.

Resolution

DNS lookups from the dyno maybe being throttled by the infrastructure provider to 1024 packets/sec: https://aws.amazon.com/premiumsupport/knowledge-center/vpc-find-cause-of-failed-dns-queries/. Each of the dynos runs on the dedicated EC2 instance.

Please try reducing the frequency in looking up the DNS with, e.g., caching the results until it expires after TTL provided by the DNS server.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support