Serverless Error: Could not unzip uploaded file

See original GitHub issue

Bug 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.

  1. What did you do?
  • deploy with latest version 1.16.3
  1. What happened?
  • AWSLambdaInternal error (Could not unzip uploaded file)
  1. What should’ve happened?
  • success like with previous version 1.16.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
medikoocommented, May 7, 2020

@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

1reaction
lima02commented, May 6, 2020

+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 ***

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found