Rank 2: Process
Ok so additionnal news:
- When execute "Execute now" on dashboard it works !
- When executing from my Flutter app, there is sometimes "Timedout"...
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Ok so additionnal news:
Rank 2: Process
I use _account.deleteSession(sessionId: 'current'); to disconnect the user
I also tried to run await _account.updateSession(sessionId: 'current'); before createExecution method to ensure session is valid but nothing to do :/
Rank 2: Process
Ok so I think I found a workaround !
If I execute the function without xasync: true, it randomly cause timed out errors
If I execute the function with xasync: true, it works nice !
@Steven I think seriously there is a bug in the Appwrite Flutter framework ...
This makes no difference on the client side. It behaves differently server side, though...
Execute now in the console is the same as setting async true
Rank 2: Process
This is incredible XD
xasync: false & Dart function -> Throw timed out randomly
xasync: false & Python function -> Works
xasync: true & Dart function -> Works
xasync: false & Dart function -> Throw timed out randomly
so the problem isn't just in the first minute anymore?
Rank 2: Process
It seem's I get it working 100% with this xasync: true (first minute included)...
If I set xasync: false, it randomly crash with timedout error (in the first minute).
I think there is a bug with xasync: false AND Dart function :/
Rank 3: Container
i am getting the same error even if i set the xasync: true from my flutter code. The function runs successfully and update the user email verification but i see fail in appwrite console it and it says exactly the same "execution time out". My function just update the user email verification to true by giving the user id.
Rank 3: Container
ok in my case i increased the timeout in function settings then it worked without time out error
Moderator
From what I understand you should not even get a response if xasync is set to true unless you request the response lately
Moderator
So that's why you're not getting the error in client but in console
Moderator
What's your average execution time?
Rank 2: Process
Yep I know but I think there is a bug because, the timeout function is set to 15 sec (default).
When I set xasync: false, the timed out error appear (the function doesn't complete during 15sec)
But when I set xasync: true, in the console I see that the function success & run 600ms ...
Rank 3: Container
probably more then 15 sec which is also the default maximum time in function settings
Rank 3: Container
i am assuming its more then 15 sec
Moderator
That's too much...
Rank 3: Container
its because i am running the appwrite instance in my NAS i think. Or is it something very unusual. In that case i dont k now then why its tooo slow.
Moderator
Maybe it's due to hardware incompatibility 🤔
Can you try upgrading to 1.4.3?
Rank 3: Container
yes i also think so because my NAS had 2GB RAM capacity and i upgraded it to 10GB which is not officially possible.
Moderator
You can use appwrite with more than 2gb ram. 2gb is the minimum
Rank 3: Container
yes i would use more rams in my production environment definately, but my NAS can be slow a bit and not capible for that kind of stuff thats why it takes some time
Rank 2: Process
Yeah tried with 1.4.3 but it's the same :/
similar problem in https://discord.com/channels/564160730845151244/1152128442876317726