# Deploy failed - PayloadTooLargeError: request entity too large

**URL:** <https://discourse.nodered.org/t/deploy-failed-payloadtoolargeerror-request-entity-too-large/45202>\
**Category:** General\
**Created:** [5 May 2021 08:30 UTC](https://discourse.nodered.org/t/deploy-failed-payloadtoolargeerror-request-entity-too-large/45202 "2021-05-05T08:30:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 May 2021 11:40 UTC](https://discourse.nodered.org/t/deploy-failed-payloadtoolargeerror-request-entity-too-large/45202/6 "2021-05-05T11:40:44Z")

</div>

try creating a settings.js file in that folder.

put inside...

```auto
console.log("Hello from settings.js");
module.exports = {
    // The maximum size of HTTP request that will be accepted by the runtime api.
    // Default: 5mb
    apiMaxLength: '6mb',
}

```

NOTE: I _think_ your node-red version will need to be \>= `0.20.0` - what version is on that box?

---

_[View the full topic](https://discourse.nodered.org/t/deploy-failed-payloadtoolargeerror-request-entity-too-large/45202)._
