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?