locked
Azure App Services "request entity too large" RRS feed

  • Question

  • I have an app services using node.js, when I call some APIs with large body data I am getting "request entity too large". Is there is setting to set the maximum request data?

    Thanks,

    Wednesday, January 18, 2017 2:35 AM

Answers

  • Hello,

    Thank you for contacting Microsoft forums. We are pleased to answer your query.

    Azure Mobile Apps SDK uses the body-parser middleware to accept and decode body content in your submission. You can pre-configure body-parser to accept larger file uploads:

    // Set up large body content handling

    app.use(bodyParser.json({ limit: '50mb' }));

    app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));

    For more information, refer this article: https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-node-backend-how-to-use-server-sdk#a-namecustomapia-custom-apis 

    I hope that the reply will assist you in getting your query addressed. In case you require further assistance, please do reply to the thread as we are always available to your queries.

    Regards,
    Swikruti

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.

    Wednesday, January 18, 2017 4:27 PM