Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred: AttachPublicReceivePolicyLambdaFunction - Uploaded file must be a non-empty zip #57

Open
oyarushe opened this issue Feb 14, 2021 · 1 comment

Comments

@oyarushe
Copy link

Hello,

I've got such an error when I tried to deploy the application.

 An error occurred: AttachPublicReceivePolicyLambdaFunction - Uploaded file must be a non-empty zip
 (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 2e7d87e5-d4d7-4ca7-9099-2a52818fea3a; Proxy: null).

Could you please, help me to investigate this issue?
Thanks

@diarmuidoconnor
Copy link

Hi,
I also had the same error when trying to deploy the backend. The issue seems to relate to the version of the Node runtime. I was using v16.13.2; however, I switched to v15.3.0, and the deployment was successful. The rationale for the switch is simply based on recommendations I can across on Stackoverflow. I also tried older versions, but the problem reoccurred.

I would also recommend disabling the hooks in serverless.yml as they may cause the deployment to fail at the very end. Just run the client setup script manually after the backend has deployed.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants