Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

increase google cloud functions request size limit

I am trying to write a google cloud function to upload build artefacts from my CI to google cloud storage, but I am getting hit by http error 413 Request Entity Too Large.

The binary is about 64mb, and I suspect this error is due to size limit in body-parser settings.

anyway to fix this to allow the function upload larger files?

like image 427
Alloys Avatar asked Feb 15 '26 10:02

Alloys


1 Answers

Sometimes it could be the Python virtual environment.
You can add the virtual environment directory (or any other directory that doesn't need to be uploaded) to the .gcloudignoe file, which behaves similarly to a .gitignore file. Everything that you specify on this file will not be uploaded to the cloud.

like image 104
dodiku Avatar answered Feb 19 '26 09:02

dodiku



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!