I noticed a lot of the premade function templates only have python and PHP runtimes which is quite different from the claims of the template ReadME which shows theses function have a NodeJS runtime https://github.com/appwrite/templates
The runtimes shown in the dropdown list depend on the runtimes you have enabled on your Appwrite instance.
If you go here: https://appwrite.io/docs/environment-variables#functions
And look for the _APP_FUNCTIONS_RUNTIMES variable, you will see all the possible runtimes you can have. There's a chance that you haven't enabled the required runtime in your .env file.
According to the README of the function here, you can see that it runs on Node.js 18. So go into your .env file (located at appwrite/.env) and add node-18.0 to the _APP_FUNCTIONS_RUNTIMES variable.
This should fix your issue
legend <:appwriterocket:823996226894692403>
Let me know if there's any issues, otherwise I'll mark this as solved 😄
Solved
Please add [SOLVED] to the beginning of the title.
[SOLVED] Sync with Algolia Function Missing NodeJS Runtime
Recommended threads
- Does Appwrite allow SSE ?
i'm trying to setup a slack bot on my site. Your deployed SSE endpoint is returning a non‑SSE response …and the browser immediately closes the connection. read...
- Function executions fail with cURL error...
Appwrite version: 1.8.0 Executor version: 0.11.4 Function runtime: Python 3.12 SELF-HOSTED Function executions that occur at the same moment as the executor's ...
- Endless certificate generation cycle
Hello, when I try to add the subdomain stats.hedgehog-rp.ru, I get an infinite loop while the certificate is being generated. There are no problems with adding ...