Question

What is the limit for Node.js fetch request / response body size and can it change it if needed?

Posted December 18, 2021 179 views
Node.jsJavaScriptNext.js

I have an application that converts images into a video file. For a 1 minute video it needs to send 1800 images (canvas.toDataURL()). Their size is ~200Mb in total. I know that many services limit the size of the fetch request/response (Vercel does so to 5Mb). Does DO has a similar limit? Can it be lifted if needed? Thanks in advance!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

In case that you are going to be running this on a Droplet, you would have root access to the server, meaning that you will be able to make any configuration changes needed so it would not be a problem.

You can follow the steps on how to deploy a Node.js Application to a Droplet here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04

Best,
Bobby

by Lisa Tagliaferri
by Kathleen Juell
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. The platform runs on Linux, macOS, FreeBSD, and Windows. Though you can run Node.js applications at the command line, this tutorial will…