Could not parse form file: http: request body too large

Suddenly, my deployment is failing with the following error:

could not parse form file: http: request body too large
The function "__API" is larger than the 50MB limit. Please consider reducing it.

The last change I made before the failed deploy was a schema change (sanity) that shouldn’t have caused this issue.

This is for

Hi @aakkapeddi,

Thanks for reaching out! Sorry to hear about the issue. Could you provide with your site name (such as or a link to the deploy log where you’re seeing the error? That’ll help us investigate the issue.

Hey Melvin, it is for And here is a link: Netlify App

Howdy @aakkapeddi :cowboy_hat_face:

It looks like you were able to resolve the error as I can see your recent deploys have been a success. :rocket: Do you still need our help?

Hey Audrey. You are correct! If you have any insight on why the following solution worked and perhaps some downsizing tips let me know. But here’s what I did.

I added the following to my netlify.toml file:

  node_bundler = "esbuild"

Great stuff @aakkapeddi! :100: The esbuild feature optimizes bundling time and artifact size when bundling Javascript functions. You could also downsize executable function artifacts using the netlify.toml properties external_node_modules and included_files . Take a look at the file-based configuration doc for details.