Skip to content

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

Answered by canton7
nrpatil1993 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nrpatil1993
Comment options

@canton7
Comment options

@nrpatil1993
Comment options

@canton7
Comment options

Answer selected by nrpatil1993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #245 on December 17, 2022 11:57.