Polly 8 sometimes throws InvalidCastException of System.TimeSpan to System.String on Timeout TimeSpan and Retry TimeSpan #2096
-
I'm seeing that an InvalidCastException exception is thrown around 0.03% of time, when creating a new default ResiliencePipeline via ResiliencePipelineBuilder().
The exception that gets thrown is sometimes due to the AddRetry, other times, it's due to the AddTimeout AddTimeout exception stack trace:
AddRetry throwing the exception call stack:
This runs on a linux machine and using Polly version 8.3.1 and .net6.0. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This sounds a lot like this issue that was fixed in .NET 8.0.2: dotnet/runtime#97037 That in turn required the library hitting the code to be re-compiled with the fix. |
Beta Was this translation helpful? Give feedback.
-
I believe this is still a problem: #2412 |
Beta Was this translation helpful? Give feedback.
This sounds a lot like this issue that was fixed in .NET 8.0.2: dotnet/runtime#97037
That in turn required the library hitting the code to be re-compiled with the fix.