menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team

Body size limits

March 21, 2019 at 6:23pm

Body size limits

March 21, 2019 at 6:23pm

Hello! I recognize that there are limits to the size of the source code used for lambdas.

However, are there limits on how big of a response a lambda can send back from an API endpoint request? Our API endpoint is only proxying some media files, but we cannot seem to get slightly larger files to return.

Should I be approaching this differently?

I keep getting

body size is too long

Logged whenever I try to request a file > ~5MB.

Thanks!


March 21, 2019 at 6:27pm

We are using builder @now/node-server@canary -- Which the docs state is the legacy way to run things, wheras the @now/node is when you want to use serverless.. We would be OK having a single instance of our proxy code if there is a way to do that.

  • reply
  • like

Is this a use case for maybe making this a V1 endpoint?

  • reply
  • like

March 22, 2019 at 12:57am