Error 413 Request Entity Too Large in POST request Next.js 13.5

I've deployed a Next.js 13.5 app to Cloud Run. I make a POST request to a Flask app, in the same project, also on Cloud Run.

I'm passing multipart/form-data in the POST request in the Next.js app (specifically a PDF file as a blob object `const blob = new Blob([pdfUint8Array], { type: 'application/pdf' });`)

Above a certain PDF size (2,144 KB is ok, 2,623 KB is not), I'm getting a 413 Error.

Does anyone know if I solve this in Google Cloud (is it a quota limitation?) or is it a Next.js issue?

Any help greatly appreciated 🙏

0 0 482
0 REPLIES 0