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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...