# 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:** 5

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [31 August 2022 05:45 UTC](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053/5 "2022-08-31T05:45:05Z")

</div>

Hey @unborN,

Short Story: it is the apiMaxLength parameter in settings.js that fixes this issue. The httpServerOptions does nothing for this issue.

When testing I had increased the apiMaxLength to 10mb but had actually used so many nodes that the flows file was bigger than the new setting. The original size of the flows file ( .../.node-red/flows\_.json was bordering on the default 5mb.

Thanks for the direction.  
Skipware

---

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