且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET Core 3.0 上 WebAPI 响应的最大长度

更新时间:2023-02-15 07:49:00

我来这里是为了寻找相同问题的解决方案,但对我而言,它并没有通过更改 MaxResponseBufferSize 来解决.

I came here looking for a solution to the same problem, but for me it was not resolved by changing the MaxResponseBufferSize.

事实证明,Postman 似乎也返回了同样的错误,因为可以配置最大大小,默认为 50Mb.

As it turned out, it seems that Postman also returns this same error, as the maximum size can be configured, and the default is 50Mb.

在 Postman 应用程序中,您可以转到设置,并将其配置为 0(无限制)或您需要的任何值.

In the Postman application, you can go to settings, and configure this to be 0 (unlimited), or whatever value you need.