ASP.NET CORE ... because it was not sent by the client at a minimum of 240 bytes/second.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhu7478848/article/details/83789918

问题:使用httpClient进行asp.net core 的api请求时出现the request timed out because it was not sent by the client at a minimum of 240 bytes/second.错误提示
解决:

 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args).UseKestrel(op =>
            {
                op.Limits.RequestHeadersTimeout = new TimeSpan(23, 59, 59);
                op.Limits.MaxRequestBodySize = null;
                op.Limits.MinResponseDataRate = null;
            }).UseStartup<Startup>();

猜你喜欢

转载自blog.csdn.net/zhu7478848/article/details/83789918