I’m running into a functions deployment error when deploying via netlify-cli:
netlify/actions/cli@master
with:
args: deploy --dir=$dist_dir/site --functions=$dist_dir/functions --prod
Gives the following output:
- Hashing files...
- Looking for a functions cache...
✔ No cached functions were found
✔ Finished hashing 118 files and 4 functions
- CDN diffing files...
✔ CDN requesting 2 files and 4 functions
- Uploading 6 files
› JSONHTTPError: Unprocessable Entity
Deploy path: /github/workspace/dist/site
Functions path: /github/workspace/dist/functions
Deploying to main site URL...
› Warning: JSONHTTPError: 422
› Warning:
{
"name": "JSONHTTPError",
"status": 422,
"json": {
"errors": "Uploaded file must be a non-empty zip"
}
}
Why is there the error?