Back

Operation Timeout on Cloud Function

  • 0
  • Functions
  • Cloud
D5
10 Mar, 2024, 09:26

And function ID?

TL;DR
Developers are experiencing Operation Timeout errors during mass testing due to executing cloud functions for creating organizations and users in an Appwrite project. The specified function IDs were provided with logs showing errors. The issue might be related to the node-appwrite package version, possibly causing the timeouts. For such massive testing, it's recommended not to run benchmarks on the cloud.
Mosh Ontong
10 Mar, 2024, 09:26

6518b64d1f08d8955b66

Mosh Ontong
10 Mar, 2024, 09:27

These are the function Ids:

  1. 6555e669c7ced0e1c2fc (A function for creating folder for the user during creation of user)
  2. 655e0c9393087db6011b (A function for creating organization)
D5
10 Mar, 2024, 09:30

But it happens only in some executions right?

Mosh Ontong
10 Mar, 2024, 09:31
Mosh Ontong
10 Mar, 2024, 09:31

This is how I execute the functions

D5
10 Mar, 2024, 09:32

Don't run those benchmarks on cloud 😅

Mosh Ontong
10 Mar, 2024, 09:33
Mosh Ontong
10 Mar, 2024, 09:33

Just trying to do exhaustive testing for my functions heheh

Mosh Ontong
10 Mar, 2024, 09:34

Because on recet mass testing for my applications I have 37 particiapnts

Mosh Ontong
10 Mar, 2024, 09:34

some of them experience this Operation Timeout

Mosh Ontong
10 Mar, 2024, 09:34

And I have to do some of testing so I can report this to appwrite

D5
10 Mar, 2024, 09:36

What's the script doing?

Mosh Ontong
10 Mar, 2024, 09:38

It have muli purpose:

  1. I can easily delete all the data of my collections or can easily to reset all during development
  2. I can easily create a dummies data.
  3. A migration
  4. I can easily verified those faciltiies , membership, and organization if ever mass testing so I cant one by one to approve them so the script will be the one help me to verified those.
D5
10 Mar, 2024, 09:38

I mean the function

Mosh Ontong
10 Mar, 2024, 09:42

If you mean my cloud function there are complex to do especially setting up the permission.

ORganization Function Flow:

  • creating organization document using Database API
  • Then the one who create the organization will also be saved to my roles and member collection
  • and so on. It just have complex to do
  • and I have this path /v1/organizations/$(organizationId}/approve. This will approve the organization

Creating Userr Function Flow:

  • It will create the user using User API
  • Then save it to my user collection
  • Then it will create a root folder docuemtns to my folder collections
Mosh Ontong
10 Mar, 2024, 09:43

In my cloud function I just created my own router for my cloud function

Mosh Ontong
10 Mar, 2024, 09:43
Mosh Ontong
10 Mar, 2024, 09:44

This wil handle the path of I want to handle

Mosh Ontong
10 Mar, 2024, 09:44
D5
10 Mar, 2024, 09:44

What's an organizatio

D5
10 Mar, 2024, 09:44

A new database?

Mosh Ontong
10 Mar, 2024, 09:44

Nope its a collection

Mosh Ontong
10 Mar, 2024, 09:45
Mosh Ontong
10 Mar, 2024, 09:45

When I approve the organization it will also create a team using the Team API by executing my Organization Cloud Function

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