-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Error: 400, Unknown Error for exceeding the Cloud Function Max deployment size #4203
Comments
@bkendall @rscotten That's right. The latest release should give you slightly better error message, e.g.
Can you give the latest version a spin and let us know? |
@rscotten Thanks for taking the time! I'll try to see what I missed in my last round 🤔 If you have sometime, I'd really appreciate if you can share the output of runnign |
|
@rscotten Huh I'm baffled. On my machine, the XML error does log nicely 🤔 Going to go off to see if I'm just a little too tired and now seeing an obvious bug. |
I faced the same issue, I tried the followings.
then,
And deployed my nextjs to the firebase function. This reduced 117MB upload file size to 11 MB file size and successfully deployed. Thank You! |
Had the same issue, which in our case was caused by Prod backups we had in the local export folder we use. Removing that data fixed the deploy payload size issue. |
Hey all, I'm going to close this since the error message is now more clear, and we don't have control over the max cloud functions upload size. If you run into this issue, please double check that you are not including anything unnecessary in the deployment |
I had the same problem, size of my package was around 140MB. This means that if anything is specified in ignore section, default values are not included anymore therefore node_modules is not excluded from the package, and this in turn means that the packages size gets very big.
|
[REQUIRED] Environment info
firebase-tools: 9.16.5
Platform: macOS
[REQUIRED] Test case
Unnecessary for this bug; just improve the server-side error messaging.
[REQUIRED] Steps to reproduce
The Cloud Function Max Deployment size is:
100MB (compressed) for sources.
500MB (uncompressed) for sources plus modules
Source
When exceeding this, the Firebase CLI error is:
Error: HTTP Error: 400, Unknown Error
[REQUIRED] Expected behavior
Error: HTTP Error: 4xx, Exceeded Cloud Function max deployment size of 100MB (compressed) for sources
or
Error: HTTP Error: 4xx, Exceeded Cloud Function max deployment size of 500MB (uncompressed) for sources plus modules
[REQUIRED] Actual behavior
Error: HTTP Error: 400, Unknown Error
The text was updated successfully, but these errors were encountered: