You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In .NET Framework, the HttpClient automatically disposes the HttpContent after the request is made (see dotnet/runtime#14612). In the RequestManager's SendPostRequestAsync() implementation, calling the RunWithRetries() method will call subsequent retry calls to the underlying client.PostAsync() to fail as the original HttpContent gets disposed after the initial failed call. This was found because our code is exactly hitting this issue with the following message: Cannot access a disposed object. Object name: 'System.Net.Http.StringContent'. Consider restructuring this code in such a way that the HttpContent is recreated on each retry.
The text was updated successfully, but these errors were encountered:
In .NET Framework, the HttpClient automatically disposes the HttpContent after the request is made (see dotnet/runtime#14612). In the
RequestManager
'sSendPostRequestAsync()
implementation, calling theRunWithRetries()
method will call subsequent retry calls to the underlyingclient.PostAsync()
to fail as the original HttpContent gets disposed after the initial failed call. This was found because our code is exactly hitting this issue with the following message:Cannot access a disposed object. Object name: 'System.Net.Http.StringContent'
. Consider restructuring this code in such a way that the HttpContent is recreated on each retry.The text was updated successfully, but these errors were encountered: