When polly is used at rest client level and an (locally running) API is called which throws an error, the API is not retried #246
-
Description To Reproduce
Version Info
Additional Info |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The layers here are RestEase --> Polly --> HttpClientHandler --> Internet. RestEase is the thing which throws an ApiException, but Polly never sees that this happens after Polly has returned a response to RestEase. Write your policy based on what the HttpClientHandler returns, i.e. based on the HttpResponseMessage. |
Beta Was this translation helpful? Give feedback.
The layers here are RestEase --> Polly --> HttpClientHandler --> Internet. RestEase is the thing which throws an ApiException, but Polly never sees that this happens after Polly has returned a response to RestEase.
Write your policy based on what the HttpClientHandler returns, i.e. based on the HttpResponseMessage.