
I'm self-hosting my appwrite instance on my Macbook, and I created a Python function using the command appwrite init functions
and it outputed the below into my appwrite.json
file:
"functions": [
{
"$id": "6822c925002b757181c0",
"name": "Combine Function",
"runtime": "python-3.9",
"specification": "s-1vcpu-512mb",
"execute": ["any"],
"events": [],
"scopes": ["users.read"],
"schedule": "",
"timeout": 15,
"enabled": true,
"logging": true,
"entrypoint": "src/main.py",
"commands": "pip install -r requirements.txt",
"path": "functions/Combine Function"
}
]
However, when I try to push my function, I get the below error when I run appwrite push functions --verbose
:
✗ Error • Combine Function (***) • Invalid `specification` param: Specification must
✗ Error: No functions were pushed.
AppwriteException [Error]: Invalid `specification` param: Specification must be one of:
I got this to work by switching the specification
property from
"specification": "s-1vcpu-512mb",
to
"specifications": [
{
"memory": 512,
"cpus": 1,
"enabled": true,
"slug": "s-1vcpu-512mb"
}
],
Is this some issue with me self-hosting, the CLI, or the function? My CLI version is 6.2.3
and my appwrite container in my docker compose file is 1.6.1
Recommended threads
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Connecting server functions to GitHub re...
The project I am working in has recently moved organizations on Appwrite. The same is true for the repo on GitHub, which as moved from a private user to a organ...
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
