Back

[SOLVED] Account.get returns an error

  • 0
  • Self Hosted
  • Accounts
  • Flutter
pitcairn1987
15 Sep, 2023, 07:54

Hi, When I use account.get() to check if user is logged, I get this error. Strange, I think I didn't change anything. It worked before fine.

TL;DR
The user was experiencing an error when using Account.get() to check if the user is logged in. It was discovered that the error was caused by an incompatible version of the SDK being used. They were advised to install a compatible version of the SDK (appwrite: ^9.0.1) which is compatible with Appwrite version 1.3.x. After updating Appwrite to version 1.4.2, the issue was resolved.
darShan
15 Sep, 2023, 08:44

What SDK version and what is the appwrite version used?

pitcairn1987
15 Sep, 2023, 11:18

sdk: 11.0.0 Appwrite: 1.3.7

darShan
15 Sep, 2023, 13:40

SDK 11.0.0 is for 1.4x. You should use appwrite: ^9.0.1 which is compatible with 1.3x.

Drake
15 Sep, 2023, 17:41

is your problem resolved?

pitcairn1987
15 Sep, 2023, 19:38

I will update appwrite to 1.4.2 and check tomorrow

Drake
15 Sep, 2023, 20:02

or you can install the compatible version of the SDK

pitcairn1987
16 Sep, 2023, 07:46

I updated Appwrite and now It's working

Drake
16 Sep, 2023, 14:23

[SOLBED] Account.get returns an error

Drake
16 Sep, 2023, 14:23

[SOLVED] Account.get returns an error

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