简体   繁体   English

Azure Node.js Linux 应用服务 Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException:请求正文太大

[英]Azure Node.js Linux App Service Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request body too large

We are using Azure Node.js Linux App service, we are running into below error when we try uploading large files ~30MB我们正在使用 Azure Node.js Linux App 服务,当我们尝试上传大约 30MB 的大文件时遇到以下错误

在此处输入图片说明

Do we have any setting to change the request body size?我们是否有任何设置来更改请求正文大小?

Thanks for asking question!谢谢提问! The CORS middleware container currently has a limitation on the size of the request you can send and disabling the CORS setting may fix the issue. CORS 中间件容器目前对您可以发送的请求大小有限制,禁用 CORS 设置可能会解决该问题。

Checkout KestrelServerLimits.MaxRequestBodySize Property for more details.查看KestrelServerLimits.MaxRequestBodySize 属性以获取更多详细信息。

You may also want to look this article: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide您可能还想查看这篇文章: https : //docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Azure Web App 服务上启动 node.js 服务器? - How to start node.js server on Azure Web App service? 将 node.js 服务器和 angular 应用程序部署到 azure Z2567A5EC9705EB7AC2C984033E068 服务 - Deploy node.js server and angular app to azure web service 如何在 Linux 上的 Azure 应用服务上运行时远程实时调试 node.js 应用 - How to remotely live debug node.js app, while running on Azure App Service on Linux 如何在Azure App Service Linux上从Node.Js应用运行获取日志输出? - How do i get log output from Node.Js app runnng on Azure App Service Linux? 如果大小太大,如何终止node.js http请求? - How to terminate node.js http request if size is too large? 在 Node.js 的 linux 服务器上使用 Microsoft access DB.accdb - Using a Microsoft access DB .accdb on a linux server with Node.js Heroku 上的 413(请求实体太大)带有 Node.JS 和 Create-React-App BuildPack - 413 (Request Entity Too Large) on Heroku w/ Node.JS and Create-React-App BuildPack 在 node.js 服务器上接受请求正文中的二进制文件 - Accept binary file in body of request on a node.js server Node.js服务器:从POST请求获取正文 - Node.js server: get body from POST request Angular 发布请求发送空正文到 node.js 服务器 - Angular post request sending empty body to node.js server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM