From 8391a71affc3e75374e82f1628d5b81f80957f72 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 24 May 2024 02:23:05 +1000 Subject: [PATCH] Challenge: Set status to 'idle' on rate limit errors --- ts/challenge.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/challenge.ts b/ts/challenge.ts index f4b35fe583..9a22a39e41 100644 --- a/ts/challenge.ts +++ b/ts/challenge.ts @@ -400,7 +400,11 @@ export class ChallengeHandler { `challenge(${reason}): challenge failure, error:`, Errors.toLogFormat(error) ); - this.options.setChallengeStatus('required'); + if (error.code === 413 || error.code === 429) { + this.options.setChallengeStatus('idle'); + } else { + this.options.setChallengeStatus('required'); + } this.solving -= 1; return; }