This error is clearly related to the size of the flows within the instance since I can reduce the size of the flow file (by removing a node or 2 from the flow). I've attached a screen shot of the error.
The post seems to refer nicely:
The answer is to increase the limit in express, however no matter what I've tried setting httpServerOptions has no effect. I do note that express.json and express.urlencoded are methods
Is anyone able to provide the correct syntax to set these options within settings.js?
@UnborN tried the httpServerOptions idea but it has no effect. I did also try to increase apiMaxLength to no avail. I think this one is for http request nodes.
Any other ideas? Is there somewhere I could possibly edit this in the express modules themselves?
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.