node-google-spreadsheet icon indicating copy to clipboard operation
node-google-spreadsheet copied to clipboard

For large writes axios needs a larger maxBodyLength

Open joshsny opened this issue 2 years ago • 2 comments

When submitting a large write operation, it can sometimes exceed the maxBodyLength setting used for axios.

This results in the following error: Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit.

To get around this, either calls could be batched when the writes are too large, or maxBodyLength could be set to Infinity. Which do you think is best?

joshsny avatar Jun 14 '22 10:06 joshsny

I'd say the simpler the solution the better. If setting maxBodyLength to infinity will work, that's definitely easy. Have you tried and verified that it works? Open a PR?

theoephraim avatar Jun 17 '22 16:06 theoephraim

Maybe expose axios properties in constructor or some other method?

renanwilliam avatar Jul 27 '22 11:07 renanwilliam

this is now fixed.

theoephraim avatar Jun 26 '23 17:06 theoephraim