# Inject Node - Max size of JSON payload

**URL:** <https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695>\
**Category:** General\
**Created:** [5 December 2022 06:34 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695 "2022-12-05T06:34:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [5 December 2022 06:34 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695/1 "2022-12-05T06:34:34Z")

</div>

Hi,

What is the max size for the payload in a inject node?

I have a JSON it say it is too large

```auto
PayloadTooLargeError: request entity too large
    at readStream (C:\Users\xxxx\AppData\Roaming\npm\node_modules\node-red\node_modules\raw-body\index.js:156:17)

```

---

<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:** [5 December 2022 07:17 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695/2 "2022-12-05T07:17:49Z")

</div>

Hello .. according to the settings.js description ([source](https://github.com/node-red/node-red/blob/master/packages/node_modules/node-red/settings.js#L156)) the default max size of the json data is 5MB  
that can be changed by editing the `apiMaxLength` property

[Related Topic Link](https://discourse.nodered.org/t/payloadtoolargeerror-at-deploy/67053)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 February 2023 07:18 UTC](https://discourse.nodered.org/t/inject-node-max-size-of-json-payload/71695/3 "2023-02-03T07:18:14Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
