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 :
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)}