var state = await dnsChallenge.Validate(); returns pending state, what are next steps?
See original GitHub issueHello,
var state = await dnsChallenge.Validate();
returns pending state. If to wait several seconds and call that command again exception will be thrown:
Certes.AcmeRequestException: Fail to load resource from 'https://acme-v02.api.letsencrypt.org/acme/challenge/YP51fWU6Lm7y5X0I1VaBs0S-lUfYQ3ORyS3AJxRiC1E/19464011558'. urn:ietf:params:acme:error:malformed: Unable to update challenge :: authorization must be pending at Certes.Acme.IAcmeHttpClientExtensions.d__0`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime
So, what is the correct next step?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
"pending" } - Should we use .then after async / await? ...
All async functions return a promise. To get the resolved value from any async function, you have to either use .then() or await...
Read more >Unable to generate certificate from .Net with production url
Token, keyAuthz); var status = await httpChallenge.Validate(); ... @JuergenAuer the current status is valid that is pending “Certes.Acme.
Read more >Promise <pending> - Damaris Göbel
If the server hasn't replied to our request yet, the promise is in the pending state. async and await with Promises. You can...
Read more >An Easy Way to Understand Promise in Javascript
After he/she states a promise with you, the only thing that you can do is wait, right? Waiting is the pending state in...
Read more >How to Debug Kubernetes Pending Pods and Scheduling ...
Learn how to debug Pending pods that fail to get scheduled due to resource constraints, taints, affinity rules, and other reasons.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hhblaze if making DNS updates you generally have a propagation time for the changes to copy to all of your nameservers, which is the main thing you need to wait for with DNS challenges. So you can optionally wait for a fixed delay before even attempting to validate.
Yeah, it looks like it is a point of delays. I have increased time to 30 seconds, between first validation call (await dnsChallenge.Validate()) and the next validation check (await challenge.Resource()), also increased time to 5 seconds between changing TXT record and first validation call and finally await challenge.Resource() returned me ChallengeStatus.Valid even after the first attempt. Will go on to test further.
Thank you!