appwrite / appwrite/sdk-for-cli
Regression: "Error: File not found in payload" creating function deployment
- Dominant language
- Go
- Stars
- 100
- Forks
- 45
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
### 👟 Reproduction steps
Self hosted Appwrite 1.8.1
Using appwrite-cli 13.0.1:
```
$ appwrite functions create-deployment --function-id=REDACTED --code="." --activate=true --verbose
Error: File not found in payload
at Client. (file:///usr/local/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:967:23)
at Generator.next ()
at file:///usr/local/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:25:71
at new Promise ()
at __awaiter (file:///usr/local/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:21:12)
at Client.chunkedUpload (file:///usr/local/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:964:16)
at Functions.createDeployment (file:///usr/local/lib/node_modules/appwrite-cli/node_modules/@appwrite.io/console/dist/esm/sdk.js:9206:28)
at file:///usr/local/lib/node_modules/appwrite-cli/dist/lib/commands/services/functions.js:133:131
```
### 👍 Expected behavior
Same command works ok using v12.0.1
### 👎 Actual Behavior
`Error: File not found in payload` in v13.0.1
### 🎲 Appwrite version
Version 1.8.x
### 💻 Operating system
Linux
### 🧱 Your Environment
_No response_
### 👀 Have you spent some time to check if this issue has been raised before?
- [x] I checked and didn't find similar issue
### 🏢 Have you read the Code of Conduct?
- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)
Contributor guide
Assessment
This issue has not been assessed yet.