title: BadHttpRequestException: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate on ASP.NET core 2.2
body: <p>I'm using aspnetboilerplate solution developed with ASP.NET core 2.2 .
  The backend is deployed on azure and it uses the SQL server provided.</p>
  <p>Sometimes, when the backend has a lot of requests to handle, it logs this exception:</p>
  <blockquote>
  <p>ERROR 2020-11-20 12:28:21,968 [85   ] Mvc.ExceptionHandling.AbpExceptionFilter - Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate.
  Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate.</p>
  </blockquote>
  <p>I tried to solve this problem adding this code to my Program.cs</p>
  <pre><code> namespace WorkFlowManager.Web.Host.Startup
      {
          public class Program
          {
              public static void Main(string[] args)
              {
                  var host = new WebHostBuilder()
                      .UseKestrel(options =&gt;
                      {
                          options.Limits.MinResponseDataRate = null;
                      });
      
                  BuildWebHost(args).Run();
              }
      
              public static IWebHost BuildWebHost(string[] args)
              {
                  return WebHost.CreateDefaultBuilder(args)
                      .UseStartup&lt;Startup&gt;()
                      .Build();
              }
          }
      }
  </code></pre>
  <p>But the problem is not solved.</p>