fixed bad request retry
This commit is contained in:
parent
266f84f33a
commit
f63d8abfc6
4
dist/cflare.classes.cflareaccount.js
vendored
4
dist/cflare.classes.cflareaccount.js
vendored
File diff suppressed because one or more lines are too long
@ -133,7 +133,7 @@ export class CflareAccount {
|
||||
)
|
||||
if (response.statusCode === 200) {
|
||||
done.resolve(response.body)
|
||||
} else if (response.statusCode === 429) {
|
||||
} else if (response.statusCode === 429 || response.statusCode === 400) {
|
||||
console.log('rate limited! Waiting for retry!')
|
||||
retryRequest()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user