set the continueOnCapturedContext for requestWriter.FlushAsync() under HttpRequestMiddleware.Invoke I'm not sure if you did this on purpose for some reason but I believe you wanted to call `ConfigureAwait(continueOnCapturedContext: false);` instead of `Co

If not, ignore me :)