
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
- Unable to push functions
Hi! I just wanted to push a cloud function to my self hosted Appwrite 1.7.4 server. While the init part works (I can see the function in the web console), i'm ...
- Adding Custom Domain to self-hosted Appw...
Hi, i deployed Appwrite with Coolify and reaching it with appw.appname.de. What is working so far. I wanted to add another custom Domain to activate email verif...
- Issue with Education Plan Activation
I recently registered for the Appwrite Education Program through your official link: https://appwrite.io/education. While the registration process seemed to com...
