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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Appwrite 1.9.0 doctor fails tho database...
So i was testing in a local environment the upgrade for 1.9.0, and after getting everything into a running state, i checked the logs that shows : ``` └── Cre...