Back

Execution of Function failed.

  • 0
  • Functions
Mosh Ontong
1 Dec, 2023, 08:16

ok I will make experiment on this one

TL;DR
The user is experiencing an issue with the execution of a function. They discovered that the problem is caused by using a two-way relationship and plan to recreate their attributes with a one-way relationship. They suggest using Postman as a temporary solution. They will share the payload with the database team for investigation. The user requests the removal of a message containing sensitive information. They recommend copying the request as a CURL command in Chrome's dev tools to test its speed. The user believes there may be bugs in the Ui console but experienced better performance in Postman. They mention a long execution time when using the appwrite cloud console. The user plans to
Meldiron
1 Dec, 2023, 08:16
Mosh Ontong
1 Dec, 2023, 08:18
Mosh Ontong
1 Dec, 2023, 08:18

the function name is organization

Mosh Ontong
1 Dec, 2023, 08:18

a Bun runtime

Mosh Ontong
1 Dec, 2023, 08:25

I see it does not relates on functions

Meldiron
1 Dec, 2023, 08:32

Ill have internal discussion about errors I see, thanks for all the insights ✨ We have been considering a rewrite of executor for quite some time now, as we are seeing more and more of those errors. We still think it somehow relates to user code, but we couldn't spot specific cause yet.

Mosh Ontong
1 Dec, 2023, 09:50

Update: Using appwrite cloud console to update my specic document it tooks 24 minutes

Mosh Ontong
1 Dec, 2023, 09:50
Mosh Ontong
1 Dec, 2023, 09:51

While in postman it tooks 4 seconds

Mosh Ontong
1 Dec, 2023, 09:51

I think the Ui console have bugs

Meldiron
1 Dec, 2023, 09:52

Can you right-click request in Chrome and copy it as CURL command? Then execute the command in your terminal, and see if that's slow or quick

Mosh Ontong
1 Dec, 2023, 09:53

I am not familair this one, is this on dev tool area?

Mosh Ontong
1 Dec, 2023, 09:54
Meldiron
1 Dec, 2023, 09:54
Meldiron
1 Dec, 2023, 09:55

That ensures you re-run exactly the same HTTP request. Could be that body has some extra data, or headers are different from request you built in Postman

Mosh Ontong
1 Dec, 2023, 09:58
Meldiron
1 Dec, 2023, 09:58

Please remove this message

Meldiron
1 Dec, 2023, 09:58

For security reason. It included your cookies, which is not safe to share publically.

Mosh Ontong
1 Dec, 2023, 10:00

Update:

Meldiron
1 Dec, 2023, 10:00

Ill share the payload with our database team, so they can investigate it. I believe this is caused by specific type of relationship - that's why you aren' facing it in different collection

Mosh Ontong
1 Dec, 2023, 10:01

I think so,

Mosh Ontong
1 Dec, 2023, 10:01

I think I am going to use the postman to update document as temporary alternative solution

Mosh Ontong
1 Dec, 2023, 10:35

Update:

Mosh Ontong
1 Dec, 2023, 13:15

Update: It is indeed that the reason behind is the relationship. I recreate some of my attribute to use only One way type of relationship. I overuse the Two way

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