Node.js Linux App Service raising Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request body too large error

Sriram, Varun 1 Reputation point
2020-03-06T19:29:13.657+00:00

We are using Azure Node.js Linux App service, we are running into below error when we try uploading large files ~30MB

NQjvh.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,381 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ajkuma 24,736 Reputation points Microsoft Employee
    2020-03-09T19:07:15.45+00:00

    @Sriram, Varun , Welcome to Microsoft Q&A! Thanks for posting the question.

    Apologies for the delay! When Easy auth and CORS features are turned on a middleware docker container is created and all requests are routed through them. You could handle the CORS within the application code in order to avoid the limit. Turn off these features and implement custom authorization and CORS application code within the app service.
    Kindly see the document for current .NET core middleware limitation.

    Also, checkout these best practices for running Node.js WebApps:

    KestrelServerLimits.MaxRequestBodySize Property

    0 comments No comments

  2. Anton Clark 1 Reputation point
    2020-04-02T05:22:31.757+00:00

    Long Path Tool will let you easily delete, copy or

    rename long path files.

    0 comments No comments