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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126