Back

Cloud Function Fails on Cloud

  • 0
  • Tools
  • Web
  • Cloud
Suiii
17 May, 2024, 18:23

The same function get deployed on seft hosted server is functioning okay. but when I try to deploy to cloud appwrite function. it shows like this

TypeScript
TypeError: userFunction.default is not a function
    at execute (/usr/local/server/src/server.js:157:48)
    at async action (/usr/local/server/src/server.js:174:13)
    at async /usr/local/server/src/server.js:10:9
TL;DR
Developers are experiencing a TypeError issue with their cloud function on Cloud. The same function works on a self-hosted server. The error message mentions "TypeError: userFunction.default is not a function".
Evdog
17 May, 2024, 19:17

When did it start failing? What 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