Rule automation error "Request must be smaller"

Hi,

I have created a pack which sends a JSON built in Coda to a n8n webhook, it used to work fine, but I am have been getting this strange error in the past few days :

Request must be smaller than 6291456 bytes for the InvokeFunction operation
Stack trace
at processTicksAndRejections (node:internal/process/task_queues:105:5) at processTicksAndRejections (node:internal/process/task_queues:105:5)

This is not even the correct size of the JSON I am sending : its actual size is 1.3Mb, not 6.3Mb… Where does this figure come from ?
What does it mean ? How to fix it ?
Thanks a lot for your help.

@Seine_Avenue - That error seems to be coming from the infrastructure that Packs runs on. Do you know if the size of your requests has been growing over time? Or have the requests always been that large?

I did some more testing, and I was able to get the same error at about 1.4mb. When we pass the Pack parameter values to the Pack runtime, we end up sending two copies for legacy reasons, as well as other metadata, so it can be much larger by the time it gets to the runtime. We aren’t able to change that in the short term, or raise the limit, so you’ll have to look for ways to reduce the payload size.

OK thank you very much @Eric_Koleda , that is what I suspected… This is a tough limitation, 1.4Mb is a very small data size…
I will try and send it in chunks, but this makes my life more difficult…