kontent-ai / management-sdk-js

SDK for Kontent.ai Management API
https://docs.kontent.ai/
MIT License
9 stars 15 forks source link

Automatic retry of 429 error in Content Management SDK #6

Closed Enngage closed 5 years ago

Enngage commented 5 years ago

Motivation

The default retry policy in Content Management SDK could retry the 429 errors and take into consideration the retry-after header value. This way I get the maximum possible rate of requests to Kentico Cloud without implementing my own retry policy.

Proposed solution

Retry 429 errors based on retry-after header value.

Enngage commented 5 years ago

Fixed by https://github.com/Kentico/kontent-management-sdk-js/commit/75a9e7439b6f87fe71cd6118ec7eb4e57099c210