Accept HTTP/429 as a "rate-limited" status code

This commit is contained in:
Jon Chambers 2022-02-24 19:26:58 -05:00 committed by GitHub
parent 7431f151b2
commit 45289f519a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 156 additions and 16 deletions

View file

@ -462,7 +462,7 @@ export class ChallengeHandler {
} catch (error) {
if (
!(error instanceof HTTPError) ||
error.code !== 413 ||
!(error.code === 413 || error.code === 429) ||
!error.responseHeaders
) {
this.options.onChallengeFailed();