Request must be smaller than 69905067 bytes for the UpdateFunctionCode operation
Author: kaihendryCreated Nov 1, 2021Updated Jul 17, 2026
Labelsbugneeds feedbackcat/deployment
Are you certain it's a bug?
- Yes, it looks like a bug
Is the issue caused by a plugin?
- It is not a plugin issue
Are you using the latest version?
- Yes, I'm using the latest version
Is there an existing issue for this?
- I have searched existing issues, it hasn't been reported yet
Issue description
Same issue as reported upon https://stackoverflow.com/questions/50674084/serverless-framework-request-must-be-smaller-than-69905067-bytes-for-the-update
Serverless: Excluding development dependencies...
Serverless: Uploading function: devicelogV1 (70.04 MB)...
Serverless Error ----------------------------------------
Request must be smaller than 69905067 bytes for the UpdateFunctionCode operation
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 17.0.1
Framework Version: 2.52.1 (local)
Plugin Version: 5.4.7
SDK Version: 4.3.0
Components Version: 3.17.1
Service configuration (serverless.yml) content
N/A
Command name and used flags
npx serverless deploy --function devicelogV1 --stage dev
Command output
N/A
Environment information
$ npx serverless --version
Framework Core: 2.52.1 (local)
Plugin: 5.4.7
SDK: 4.3.0
Components: 3.17.1
Source: serverless/serverless