Functions always throw timeout error after creating user account during 1min
- 0
- Self Hosted
- Functions
- General
- Accounts

Ok so additionnal news:
- When execute "Execute now" on dashboard it works !
- When executing from my Flutter app, there is sometimes "Timedout"...

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

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

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?

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

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.

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

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

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

What's your average execution time?

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

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

i am assuming its more then 15 sec

That's too much...

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.

Maybe it's due to hardware incompatibility 🤔

Can you try upgrading to 1.4.3?

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

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

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

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

similar problem in https://discord.com/channels/564160730845151244/1152128442876317726
Recommended threads
- setup custom domain to appwrite but stil...
i just installed a Appwrite instance in my vps and i did all default otions exept the domain i have setuop its dns as A records pointing to my vps ip altho...
- 1.7.x Style issue in the migration page
I am not able to select what to migrate because of the styling... the checkboxes are not showing on any of the appwrite versions 1.7.x. I tried other browsers, ...
- Website not responding on User session T...
The website is not responding after opening the user sessions tab. (The Chrome tab crashes and i need to open a new one )
