Metadata API request failed: request to https://../services/Soap/m/##.0 failed, reason: getaddrinfo EAI_AGAIN #2496
Labels
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
I've seen this bug since switching to the
sf
CLI, including the most recent build. It happens randomly and isn't reproducible. Seen while runningsf project deploy start
andsf project deploy validate
commands.I understand EAI_AGAIN is a DNS issue, but I've seen previous CLI bugs such as the "Org Cannot Be Found" error be temporarily resolved by disabling the DNS check with the environment variable.
SF_DISABLE_DNS_CHECK=true
I am running the CLI in a GitLab CI/CD environment with Kubernetes (K8s) runners and the latest Ubuntu container.
My question is where specifically in the code base is this error raised? Does this occur when the CLI determines the latest API version available in the Org? Will disabling the DNS check resolve this issue and is there any downsides to disabling the DNS? If I keep the maximum API version stored in the
sfdx-project.json
file in my VCS, I don't see the need for the additional API version check done by the DNS.Please let me know what I can do to hopefully remove this Metadata API failure.
Steps To Reproduce
Cannot re-produce this type of bug.
Seen while running these commands:
sf project deploy start
for deploy (non-apex)sf project deploy validate
for validations ahead of quick-deploys (apex)sf project deploy quick
for quick-deploys (apex)Expected result
CLI final status matches the Salesforce Deployment Status.
Actual result
Pipelines using the CLI occasionally fail with this error as the deployment continues in the Salesforce Org.
System Information
Bash / Ubuntu Docker Image (latest) / GitLab CI/CD with Kubernetes runners
We build our Custom Docker Image using this Dockerfile:
We have also seen this while using
alpine:latest
before we switched to Ubuntu.Additional information
The text was updated successfully, but these errors were encountered: