Support for "Deploy did not succeed with HTTP Error 400"

Site Information

Netlify site name: swyftfilings.netlify.app

Issue Description

We’re suddenly experiencing a deployment error that’s blocking our site across all environments (qa, staging, main). The error shows:

The function exceeds the maximum size of 250 MB
Failed to upload file: ssr-engine-odb
Failed to upload file: ssr-engine

What’s Strange

  • This happened suddenly without any major code changes
  • All environments are affected simultaneously
  • We don’t use any SSR functions intentionally
  • We’ve been actively working on reducing bundle size

What We’ve Tried

:white_check_mark: Checked .gitignore file (looks correct)
:white_check_mark: No recent large changes were pushed
:white_check_mark: Multiple bundle size reduction approaches
:white_check_mark: Verified we’re not using SSR functions in our code

Additional Issues

  • Your support form is not working, so posting here instead

Build Log

Error occurs at: Failed to upload ssr-engine-odb and ssr-engine functions

Full error message:

Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default &{Code:400 Message:The function exceeds the maximum size of 250 MB}

Key part of build log:

10:59:10 AM: 2 new function(s) to upload
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: Failed to upload file: ssr-engine-odb
10:59:22 AM: Failed to upload file: ssr-engine
Full Build Log
10:59:06 AM: Deploy site                                                   
10:59:06 AM: ────────────────────────────────────────────────────────────────
10:59:06 AM: ​
10:59:06 AM: Starting to deploy site from 'public'
10:59:08 AM: Calculating files to upload
10:59:10 AM: 1319 new file(s) to upload
10:59:10 AM: 2 new function(s) to upload
10:59:10 AM: Starting to upload
10:59:11 AM: 10% uploaded
10:59:11 AM: 20% uploaded
10:59:12 AM: 30% uploaded
10:59:12 AM: 40% uploaded
10:59:13 AM: 50% uploaded
10:59:14 AM: 60% uploaded
10:59:14 AM: 70% uploaded
10:59:15 AM: 80% uploaded
10:59:15 AM: 90% uploaded
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:59:22 AM: Failed to upload file: ssr-engine-odb
10:59:22 AM: Failed to upload file: ssr-engine
10:59:22 AM: Section completed: deploying
10:59:22 AM: ​
10:59:22 AM: Error deploying                                               
10:59:22 AM: ────────────────────────────────────────────────────────────────
10:59:22 AM: ​
10:59:22 AM:   Error message
10:59:22 AM:   Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default  &{Code:400 Message:The function exceeds the maximum size of 250 MB}
10:59:22 AM: ​
10:59:22 AM:   Error location
10:59:22 AM:   At deploy the stage with HTTP status code '400'
10:59:22 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:59:22 AM: Failing build: Failed to build site

Questions

  1. Why are ssr-engine-odb and ssr-engine functions being created when we don’t use SSR?
  2. What’s causing these functions to exceed 250MB?
  3. How can we prevent these functions from being generated?
  4. Why did this suddenly affect all environments simultaneously?

Ask Netlify Status

:cross_mark: Did not try Ask Netlify - Support form is not working

This is blocking all our deployments and we urgently need assistance to identify the root cause.

Thanks for your help! :folded_hands:

I’ve routed this to our helpdesk, we’ll follow up via email.