1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

namecheap fix rate limit detection (#2081)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Will Power
2023-02-19 05:13:57 +00:00
committed by GitHub
parent 7b1b964b76
commit c24a88d08e

View File

@ -99,7 +99,7 @@ func doWithRetry(f func() error) {
if err == nil {
return
}
if strings.Contains(err.Error(), "Error 500000: Too many requests") {
if strings.Contains(err.Error(), "unexpected status code from api: 405") {
currentRetry++
if currentRetry >= maxRetries {
return