I am a developing an appwrite function locally. I am not sure how to add a trigger for bucket file creation events. I added in the appwrite.json into the events parameter
"functions": [
{
"$id": "67989f220010250ff712",
"name": "trancode video ",
"runtime": "python-3.9",
"specification": "s-0.5vcpu-512mb",
"execute": [
"any"
],
"events": ["buckets.*.files.*.create"],
"scopes": [
"users.read"
],
"schedule": "",
"timeout": 15,
"enabled": true,
"logging": true,
"entrypoint": "src/main.py",
"commands": "pip install -r requirements.txt",
"path": "functions/trancode video "
}
I upload the file in the bucket but the function does not seem to trigger.
I tried deploying the function by pushing it but getting the following error
appwrite push
? Which resources would you like to push? Functions (Deployment)
? Which functions would you like to push? trancode video (67989f220010250ff712)
ℹ Info: Validating functions ...
ℹ Info: Checking for changes ...
ℹ Info: Pushing functions ...
✗ Error • trancode video (67989f220010250ff712) • Invalid `specification` param: Specification must be one of:
✗ Error: No functions were pushed.
Unsure of what is wrong.
CLI version
appwrite --version
6.2.0
Appwrite deployment version
1.6.0
Recommended threads
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...