We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d1d3f0 + 5c166ba commit e96e370Copy full SHA for e96e370
1 file changed
src/Plugins/BotSharp.Plugin.Membase/GraphDb/MembaseGraphDb.cs
@@ -1,3 +1,4 @@
1
+using System.Net;
2
using Polly;
3
using Polly.Timeout;
4
using Refit;
@@ -75,7 +76,7 @@ private AsyncPolicy BuildRetryPolicy()
75
76
.Handle<HttpRequestException>()
77
.Or<TaskCanceledException>()
78
.Or<TimeoutRejectedException>()
- .Or<ApiException>(ex => ex.StatusCode == HttpStatusCode.ServiceUnavailable)
79
+ .Or<ApiException>(ex => ex.StatusCode == HttpStatusCode.ServiceUnavailable || ex.StatusCode == HttpStatusCode.InternalServerError)
80
.WaitAndRetryAsync(
81
retryCount: RetryCount,
82
sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
0 commit comments