Azure App Service将主体大小限制为〜64kB [英] Azure App Service limits body size to ~64kB

查看:64
本文介绍了Azure App Service将主体大小限制为〜64kB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上托管了Node.js应用程序.它是定价层"Default2(免费)"中的网络应用".当我尝试发送大于64kB的JSON时,服务器返回HTTP错误413(请求实体太大"),正文为Payload Too Large.

I have Node.js app hosted on Azure. It's "Web app" in pricing tier "Default2 (Free)". When I try to send JSON larger than 64kB server returns HTTP error 413 ("Request Entity Too Large") with body Payload Too Large.

在Web.config文件中设置此设置无济于事:

Setting this in Web.config file didn't help:

<configuration>
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="102400000" />
            </requestFiltering>
        </security>
    </system.webServer>
</configuration>

推荐答案

根据我的经验,我认为该问题不是由Azure IIS的配置引起的.

Per my experience, I think the issue was not caused by the configuration for Azure IIS.

有两个已回答的SO线程似乎对您有所帮助.

There were two answered SO threads seem helpful for you.

  1. 有关解决请求正文太大的问题,请参阅错误:请求实体太大.

有关解决请求标头大小限制的问题,请参见 http.request 中的nodeJS最大标头大小.

For resolving the issue of request header size limit, please see nodeJS max header size in http.request.

希望有帮助.

任何担心,请随时让我知道.

Any concern, please feel free to let me know.

这篇关于Azure App Service将主体大小限制为〜64kB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆