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
- Issue with account.get() – "type 'Null' ...
Hey everyone, I'm running a self-hosted Appwrite instance and using the Appwrite Flutter SDK. When calling account.get(), I get the following error: "type 'Nul...
- Creating A User Account
I have a simple form component that is expected to create a new user using the the ###firstName, ###lastName, ###username, and ###password from a react-hook-for...
- SMTP with Mailcow
I am trying to invite a member to my project and i have set up Mailcow but i have no idea which settings are correct. any help is appreciated