# PayloadTooLargeError at deploy

**URL:** <https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053>\
**Category:** General\
**Created:** [29 August 2022 05:25 UTC](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053 "2022-08-29T05:25:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [29 August 2022 12:11 UTC](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053/2 "2022-08-29T12:11:32Z")

</div>

I havent used this option but from my settings.js file the default is commented out and is defined as an object. So im guessing

`httpServerOptions: { limit: '25mb' },`

no need for app.use or anything else .. i think it should apply for all middleware

**[EDIT]**

I see there is also an option in settings for `//apiMaxLength: '5mb',`

> The maximum size of HTTP request that will be accepted by the runtime api. Default: 5mb

---

_[View the full topic](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053)._
