Back

Functions always throw timeout error after creating user account during 1min

  • 0
  • Self Hosted
  • Functions
  • General
  • Accounts
iStornZ
14 Sep, 2023, 09:40

Ok so additionnal news:

  • When execute "Execute now" on dashboard it works !
  • When executing from my Flutter app, there is sometimes "Timedout"...
TL;DR
Users are experiencing timeout errors when running functions after creating a user account. Upgrading to version 1.4.3 does not solve the issue, and it may be due to hardware incompatibility. Increasing the timeout in function settings has worked for some users, but others still experience the error. Setting xasync to true instead of false seems to be a workaround for some, but it may still result in random timeout errors. The issue may be specific to the Dart function in the Appwrite Flutter framework. There is no definitive solution provided in the thread.
iStornZ
14 Sep, 2023, 09:56

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 :/

iStornZ
14 Sep, 2023, 17:02

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 ...

Drake
14 Sep, 2023, 21:56

This makes no difference on the client side. It behaves differently server side, though...

Drake
14 Sep, 2023, 21:58

Execute now in the console is the same as setting async true

iStornZ
15 Sep, 2023, 07:04

This is incredible XD

xasync: false & Dart function -> Throw timed out randomly xasync: false & Python function -> Works xasync: true & Dart function -> Works

Drake
15 Sep, 2023, 17:48

xasync: false & Dart function -> Throw timed out randomly so the problem isn't just in the first minute anymore?

iStornZ
16 Sep, 2023, 07:11

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 :/

Faisal7
16 Sep, 2023, 20:28

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.

Faisal7
16 Sep, 2023, 20:41

ok in my case i increased the timeout in function settings then it worked without time out error

D5
16 Sep, 2023, 21:32

From what I understand you should not even get a response if xasync is set to true unless you request the response lately

D5
16 Sep, 2023, 21:34

So that's why you're not getting the error in client but in console

D5
16 Sep, 2023, 21:38

What's your average execution time?

iStornZ
17 Sep, 2023, 11:19

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 ...

Faisal7
17 Sep, 2023, 13:53

probably more then 15 sec which is also the default maximum time in function settings

Faisal7
17 Sep, 2023, 13:54

i am assuming its more then 15 sec

D5
17 Sep, 2023, 13:54

That's too much...

Faisal7
17 Sep, 2023, 16:02

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.

D5
17 Sep, 2023, 17:24

Maybe it's due to hardware incompatibility πŸ€”

Drake
17 Sep, 2023, 22:06

Can you try upgrading to 1.4.3?

Faisal7
18 Sep, 2023, 10:26

yes i also think so because my NAS had 2GB RAM capacity and i upgraded it to 10GB which is not officially possible.

D5
18 Sep, 2023, 12:13

You can use appwrite with more than 2gb ram. 2gb is the minimum

Faisal7
18 Sep, 2023, 12:40

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

iStornZ
18 Sep, 2023, 18:05

Yeah tried with 1.4.3 but it's the same :/

Drake
20 Sep, 2023, 23:01
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