question

SriramVarun-7980 avatar image
0 Votes"
SriramVarun-7980 asked ·

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

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-webappsazure-webapps-developmentazure-webapps-scaling
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ·

@SriramVarun-7980, 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


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AntonClark-2426 avatar image
0 Votes"
AntonClark-2426 answered ·

Long Path Tool will let you easily delete, copy or

rename long path files.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.