Serverless Error: Could not unzip uploaded file
See original GitHub issueBug Report
Description
I just upgraded to 1.16.3
and got the following error when running sls deploy
:
Serverless Error ---------------------------------------
An error occurred: CustomDashresourceDashapigwDashcwDashroleLambdaFunction - **Could not unzip uploaded file**. Please check your file, then try to upload again. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: ...).
Then i tried to open the custom-resources.zip
myself and got an unexpected end of archive type of error.
With 1.16.2
i got no problems though, so it’s not critical for me.
- What did you do?
- deploy with latest version
1.16.3
- What happened?
- AWSLambdaInternal error (Could not unzip uploaded file)
- What should’ve happened?
- success like with previous version
1.16.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
AWS Lambda Error: Could not unzip uploaded file
I am trying to update the code in my lambda function using the aws-sdk package for node.js.
Read more >Could not unzip uploaded file. Please check your file ... - GitHub
I was stuck with this error CREATE_FAILED | AWS::Lambda::LayerVersion | PrismaLayer958161C6 | Could not unzip uploaded file. Please check your file, ...
Read more >Serverless Deploy - Could not unzip uploaded file on AWS S3
I get the following message when trying to deploy - I'm using the command serverless deploy --stage staging . What I don't understand...
Read more >Node.js – AWS Lambda Error: Could not unzip uploaded file
I am trying to update the code in my lambda function using the aws-sdk package for node.js. So I wrote the following script...
Read more >Troubleshoot Lambda deployment package upload errors - AWS
When I try to upload my AWS Lambda deployment package, I get either a permission denied or unable to import module error. How...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lima02 thanks for details. I believe removing
~/.serverless/cache/custom-resources
will allow you to recover.Still I think I know what could lead to that issue, fix is on the way
+1 @andreigec Mac 10.14.6. It happens during stack deployment.
Your Environment Information --------------------------- Operating System: darwin Node Version: 12.16.3 Framework Version: 1.69.0 Plugin Version: 3.6.10 SDK Version: 2.3.0 Components Version: 2.30.7
*** I was able to deploy the stack after downgrade to 1.68.0 ***