Skip to content

gandiv5: context deadline exceeded (Client.Timeout exceeded while awaiting headers) #2259

Closed Answered by ldez
ook asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

acme: error presenting token: unable to get TXT records for domain mydomain.tld and name _acme-challenge.mysub:
unable to communicate with the API server: error: Get "https://dns.api.gandi.net/api/v5/domains/mydomain.tld/records/_acme-challenge.mysub/TXT\":
context deadline exceeded (Client.Timeout exceeded while awaiting headers)

This timeout is related to the HTTP client used inside the API Client for Gandi.
It's because the Gandi API is slow to answer.

You should increase this timeout by setting the env var GANDIV5_HTTP_TIMEOUT (by default it's 10 seconds) to something like 30 seconds: GANDIV5_HTTP_TIMEOUT=30

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Comment options

You must be logged in to vote
1 reply
@ldez
Comment options

ldez Sep 3, 2024
Maintainer

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants