Challenge: Set status to 'idle' on rate limit errors
This commit is contained in:
parent
8a9ab8c13f
commit
8391a71aff
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue