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
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...