Back

[SOLVED] Sync with Algolia Function Missing NodeJS Runtime

  • 0
  • Functions
  • Web
benemma
4 Sep, 2023, 12:17

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

TL;DR
The user had an issue with a missing NodeJS runtime in their Appwrite instance when trying to sync with Algolia. The solution was to enable the NodeJS 18 runtime in the `.env` file by adding `node-18.0` to the `_APP_FUNCTIONS_RUNTIMES` variable.
safwan
4 Sep, 2023, 12:23

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

benemma
4 Sep, 2023, 12:27

legend <:appwriterocket:823996226894692403>

safwan
4 Sep, 2023, 12:49

Let me know if there's any issues, otherwise I'll mark this as solved 😄

benemma
4 Sep, 2023, 14:58

Solved

ideclon
4 Sep, 2023, 15:01

Please add [SOLVED] to the beginning of the title.

benemma
4 Sep, 2023, 16:13

[SOLVED] Sync with Algolia Function Missing NodeJS Runtime

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more