# Serverless makes corrupted .zip

**URL:** <https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [January 17, 2021, 3:46pm UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772 "2021-01-17T15:46:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wsu](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@Wsu](https://forum.serverless.com/u/Wsu)\
**Post date:** [January 17, 2021, 3:46pm UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772/1 "2021-01-17T15:46:39Z")

</div>

Hi.

I wrote an Apollo-Lambda GraphQl server that I successfully pushed to AWS Lambda.

But since yesturday, running the serverless deploy commands generate a corrupted .zip archive. it has the right size in MO, but can’t be read by AWS (which gives my the following error:

```
  An error occurred: GraphqlLambdaFunction - Uploaded file must be a non-empty zip (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 

```

If i try tu unzip the archive on my computed, i got one line like the following from stdout for each file in the archive:

```
inflating: node_modules/wss/LICENSE bad CRC 5747618f (should be 00000000)

```

The question is: why are the archive malformed?  
thanks

---

<div class="post-metadata">

**Author:** ![rfriesen](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rfriesen](https://forum.serverless.com/u/rfriesen)\
**Post date:** [January 18, 2021, 4:45pm UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772/2 "2021-01-18T16:45:52Z")

</div>

I’m new to Serverless and experiencing the same issue when trying to deploy a function (build on MacOS Catalina).

~~Is there any news already?~~  
Just found this issue:

> <https://github.com/serverless/serverless/issues/8772>
>
> On my local Mac, I was trying the aws-go-mod template and sls deploy failed with
> An error occurred: HelloLambdaFunction - Uploaded...

Seems to be related to Node 15.6.0

---

<div class="post-metadata">

**Author:** ![beenmeckel](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beenmeckel](https://forum.serverless.com/u/beenmeckel)\
**Post date:** [February 13, 2021, 8:24pm UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772/3 "2021-02-13T20:24:37Z")

</div>

The argument about security is particularly funny when you know that Lambda is stuck on Node 6.12 which is a few years old and has unpatched security issues. People have been asking for a new version of Node for years now and, in typical AWS style, they don’t even bother answering or giving any type of roadmap [Kodi](https://kodi.software/) [nox](https://nox.tips/).

---

<div class="post-metadata">

**Author:** ![electric-al](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/electric-al/32/5237_2.png) [@electric-al](https://forum.serverless.com/u/electric-al)\
**Post date:** [February 14, 2021, 12:46pm UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772/4 "2021-02-14T12:46:50Z")

</div>

Yeah same issue here on brand new macbook… down graded to node@14 with brew, and works.

---

<div class="post-metadata">

**Author:** ![nicolas](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/nicolas/32/5276_2.png) [@nicolas](https://forum.serverless.com/u/nicolas)\
**Post date:** [February 22, 2021, 8:08am UTC](https://forum.serverless.com/t/serverless-makes-corrupted-zip/13772/5 "2021-02-22T08:08:34Z")

</div>

Seems this is fixed: see [Mac: aws-go-mod deploy failed Uploaded file must be a non-empty zip · Issue #8772 · serverless/serverless · GitHub](https://github.com/serverless/serverless/issues/8772)
