Azure / Azure/autorest.powershell

Retry http errors

Open
#527 2 comments 0 reactions 1 assignee Claimed by @dolauli View on GitHub
discussion
Dominant language
C#
Stars
123
Forks
99
PR merge metrics
No merged PRs in 30d

Description

In all SDKs, there is retry logic to retry 'retryable' error codes. You can find this code [here](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/mgmtcommon/ClientRuntime/ClientRuntime/TransientFaultHandling/HttpStatusCodeErrorDetectionStrategy.cs#L26) in the .Net SDK runtime. Generally the code decides whether an error is retryable based on the response status code (most 5xx and a xsmall number of 4xx errors [429] are retryable in Azure), and the client uses an exponential backoff algorithm and a retry maximum to determine when and how many retries occur for a given request.

We need to provide this level of retries as a minimum bar. This could be provided in the default Http pipeline provided by the generated code, or in the pipeline provided by the `Register-AzModule` call.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.