When I deploy, i recived one error "PayloadTooLargeError: request entity too large"

Hi

I use node-red, since 2019.
I use node-red, to know the temperatures of frozen, and I use a lot of flows.
Now, when I insert a node and I want to deploy, I receive an error. And I don't know who to repair
I insert the message of error down
"
PayloadTooLargeError: request entity too large
at readStream (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\raw-body\index.js:157:17)
at getRawBody (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\raw-body\index.js:109:12)
at read (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\body-parser\lib\read.js:79:3)
at jsonParser (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\body-parser\lib\types\json.js:135:5)
at Layer.handle [as handle_request] (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\router\index.js:328:13)
at C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\router\index.js:286:9
at Function.process_params (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\router\index.js:346:12)
at next (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\express\lib\router\index.js:280:10)
at cors (C:\Users\admin\AppData\Roaming\npm\node_modules\node-red\node_modules\cors\lib\index.js:188:7)
"
I Insert an image of error

I give you the versions of my node red

  • 15 Sep 13:13:18 - [info] Node-RED version: v3.0.2
  • 15 Sep 13:13:18 - [info] Node.js version: v18.3.0
  • 15 Sep 13:13:18 - [info] Windows_NT 10.0.19045 x64 LE
  • 15 Sep 13:13:19 - [info] Loading palette nodes
  • 15 Sep 13:13:21 - [info] Worldmap version 2.37.3
  • 15 Sep 13:13:21 - [info] Dashboard version 3.2.0 started at /ui
  • 15 Sep 13:13:22 - [info] Settings file : C:\Users\admin.node-red\settings.js
  • 15 Sep 13:13:22 - [info] Context store : 'default' [module=memory]
  • 15 Sep 13:13:22 - [info] User directory : \Users\admin.node-red
  • 15 Sep 13:13:22 - [warn] Projects disabled : editorTheme.projects.enabled=false
  • 15 Sep 13:13:22 - [warn] Flows file name not set. Generating name using hostname.
  • 15 Sep 13:13:22 - [info] Flows file : \Users\admin.node-red\flows_IOT.json
  • 15 Sep 13:13:22 - [info] Server now running at http://127.0.0.1:1880/
  • 15 Sep 13:13:22 - [warn]

If anyone knows how to solve it, please tell me.

Thanks a lot

Hi, welcome to the forum.

A quick search reveals the answer: Search results for 'PayloadTooLargeError' - Node-RED Forum

In short, it is most likely your flow size is larger than the setting apiMaxLength in setting.js file.

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