hibp icon indicating copy to clipboard operation
hibp copied to clipboard

HTTPClient::ClientError

Open 0xspade opened this issue 6 years ago • 1 comments

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 avatar Mar 15 '18 09:03 0xspade

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

0xspade avatar Mar 15 '18 09:03 0xspade