Skip to content

Add automatic retries

Compare
Choose a tag to compare
@matt-thomson matt-thomson released this 05 Jan 10:42
· 623 commits to master since this release
  • Adds automatic retries for all requests that can be safely retried. In the event of a network failure or internal server error, requests will be retried up to 3 times.

For POST requests, this involves adding an idempotency key to the request. These are automatically generated by default, but you can override them with the setIdempotencyKey methods.

To disable automatic retries (for example, because you have your own retry logic that you wish to use), you should use the executeWrapped method.