Back

Help Needed Using Appwrite Functions

  • 1
  • Functions
  • Cloud
Akash Srinivasan
11 Mar, 2024, 12:20

Hey guys !! Can any one please help me using appwrite cloud functions. Actually migrating my whatsapp msg api from render to appwrite functions and everytime i run it getting this err:-

TypeScript
    at execute (/usr/local/server/src/server.js:159:28)
    at action (/usr/local/server/src/server.js:174:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /usr/local/server/src/server.js:10:9```

for testing purpose even / which return Hello World is also giving the same err
TL;DR
Developers are seeking help with using Appwrite cloud functions. They are encountering a TypeError: userFunction is not a function when trying to run their code. The solution may involve ensuring the function is in the correct format and verifying the version compatibility. They are advised to refer to the documentation for proper function writing instructions.
Steven
11 Mar, 2024, 12:34

this happens if your function isn't in the right format...did this function exist before or after 1.4?

Akash Srinivasan
11 Mar, 2024, 12:35

I just added it today not sure about the version πŸ˜…

Steven
11 Mar, 2024, 12:37

then please refer to the docs for how to write your function: https://appwrite.io/docs/products/functions/development

Akash Srinivasan
11 Mar, 2024, 12:38

@Steven Okay thanks !!

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