HTTPClient::ClientError
0xspade opened this issue · 1 comments
0xspade commented
Is this normal? or Rate limits of the API?
[⚡] ACCOUNT CHECKS THAT ENCOUNTERED ERROR:
* <redacted>@gmail.com: Hibp::HttpClient::ClientError: GET to https://haveibeenpwned.com/api/breachedaccount/<redacted>%40gmail.com returned status 429 - options: {:query=>nil}
* <redacted>@gmail.com: Hibp::HttpClient::ClientError: GET to https://haveibeenpwned.com/api/breachedaccount/<redacted>%40gmail.com returned status 429 - options: {:query=>nil}
0xspade commented
hey @michenriksen
as the haveibeenpwned.com says that
Adding a 100 millisecond delay between requests will usually ensure this won't happen.
maybe you can implement this to avoid rate limitting :D