packngo icon indicating copy to clipboard operation
packngo copied to clipboard

Add 429 Rate limiting

Open displague opened this issue 4 years ago • 0 comments

packngo includes some forms of rate limiting from https://github.com/hashicorp/go-retryablehttp#go-retryablehttp. Go-retryable has only handled non 501 500 HTTP responses until recently.

go-retryable has added 429 support https://github.com/hashicorp/go-retryablehttp/issues/99.

The Packet API can return 429 responses under the right conditions.

Packngo should handle these 429s responses with proper rate limit handling.

displague avatar Jul 16 '20 01:07 displague