0

I'm trying to stream into chunks some pdf files from a NestJS application deployed on Cloud Run. I'm always getting error after 32 MB reponse size even when sending the buffer (file) in multiple chunks , I also can't get the response header 'Transfer-Encoding' = 'chunked' from Cloud Run service response, but I can get another test response header that I created :

enter image description here

I can get it in the response Headers when I execute the app locally.

I'm specifying it as :

  @Get('streamable')
  @Header('Transfer-Encoding', 'chunked')
  @Header('test-header-1', 'test-value-1')
  async streamable(@Res() res) { etc.. res.write(chunk)}
xgeek652
  • 305
  • 3
  • 17
  • Please check this [official document](https://cloud.google.com/run/quotas#cloud_run_limits) and this [thread](https://medium.com/google-cloud/bypass-the-cloud-run-32mb-limit-with-cloud-storage-65c24156189). Also check these Stack links: https://stackoverflow.com/questions/57318462/google-cloud-run-upload-to-gcs-data-transfer-limit https://stackoverflow.com/questions/71699424/bypassing-cloud-run-32mb-error-via-http2-end-to-end-solution – Vaidehi Jamankar Dec 12 '22 at 09:02

0 Answers0