My problem goes this way:
I have an Azure APIM, I have created an API and addeded the backend retry policy as below.
<backend>
<retry condition="@("{{Transient-ErrorCode}}".Contains(Convert.ToString(context.Response.StatusCode)))" count="3" interval="5" first-fast-retry="false">
<forward-request />
</retry>
</backend>
The server return success(statuscode: 200) for the first time, When it initiate the retry it encountered the following(I am retrying at its success also, for testing the retry is working fine.).
forward-request (1.326 ms)
{
"messages": [
"Content length mismatch",
"Content length mismatch"
]
}
Please help with your thoughts/experience on the same.