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
{{ message }}
Repository navigation
InvalidOperationException while using AddExtendedHttpClientLogging #7649
Extended HTTP logging breaks stream reads in Debug mode (.NET, Microsoft.Extensions.Http.Diagnostics 9.1+)
When using AddExtendedHttpClientLogging with HttpClient.GetAsync, reading the response stream in Debug mode throws InvalidOperationException: The stream was already consumed. Release mode is unaffected. Reproduced on 9.1+; not present on 9.0. Fix: use SendAsync with HttpCompletionOption.ResponseHeadersRead instead of GetAsync.
Activity
MihuBot commentedon Jul 21, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Fix response body logging under debugger (dotnet#7678)