amplience / dc-management-sdk-js

Amplience Dynamic Content Management SDK
https://amplience.github.io/dc-management-sdk-js/
Other
45 stars 14 forks source link

feat(client): updated default http client to retry network or rate limited errors #151

Closed Benj0s closed 1 year ago

Benj0s commented 1 year ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behaviour?

When request returns a "retryable" error there is not attempt to retry the request.

What is the new behaviour?

Added retry behaviour for the following errors:

The client is configured to retry error requests 3 times using exponential backoff.

Does this introduce a breaking change?

Other information

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 6694355901


Totals Coverage Status
Change from base Build 6694350750: 0.03%
Covered Lines: 966
Relevant Lines: 983

💛 - Coveralls