Skip to content

Commit 025fff8

Browse files
committed
add retriable errors
1 parent 08dbb8c commit 025fff8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azureappconfiguration/azureappconfiguration.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,9 @@ func (azappcfg *AzureAppConfiguration) startupWithRetry(ctx context.Context, tim
706706
}
707707

708708
// Check if the error is retriable
709-
if !isFailoverable(err) {
709+
if !(isFailoverable(err) ||
710+
strings.Contains(err.Error(), "no client is available") ||
711+
strings.Contains(err.Error(), "failed to get settings from all clients")) {
710712
return fmt.Errorf("load from Azure App Configuration failed with non-retriable error: %w", err)
711713
}
712714

0 commit comments

Comments
 (0)