Request retry failed with empty body #2510
Labels
Needs: Attention 👋
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
type:question
An issue that's a question
Describe the bug
Hi SDK team,
Our service is on sdk version 5.31.0, and this is the latest capable version with our framework.
An unexpected behavior we started to get after switch to use this sdk version (from sdk version 3.19) is that retries handled by Polly ExecuteAsync is sending empty request body/some of the request properties are missing, which lead to the retry failure. The request body contains all expected properties during the first attempt. Issues are only seen in retries.
Expected behavior
Object created outside of the retry block should be picked up correctly by the Polly handler.
How to reproduce
code snippet
SDK Version
5.31.0
Latest version known to work for scenario above?
No response
Known Workarounds
Our workaround at this moment is to recreate the object within the retry block with all the required properties. But we would like to understand the reason why the object is not being picked up correctly if it's being created outside of the retry block.
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: