Back

[SOLVED] Flutter Error for User Models

  • 0
  • Users
  • Flutter
mzharfanw
8 Sep, 2023, 17:22

I try to get account (account.get()) on flutter SDK, but i always get error for it because there's no labels in response.

it force me to uncomment labels variable on User Models for my sdk flutter directly.

and btw, "labels" variable isn't explained on User Object docs, or Account object docs

i work with Appwrite 1.3.8, and Appwrite Flutter sdk 10.0.1

TL;DR
Summary: The user was encountering an error while trying to get the account details using Flutter SDK with Appwrite version 1.3.8. They found a solution by uncommenting the "labels" variable in User Models for their Flutter SDK. Additionally, they mentioned that the "labels" variable is not explained in the User Object or Account Object documentation. Solution: Uncomment the "labels" variable in User Models for Flutter SDK.
Binyamin
8 Sep, 2023, 17:24

For Appwrite version 1.3.8 use version 9.0.1

Binyamin
8 Sep, 2023, 17:24

Version 10.0.1 is to be used with Appwrite 1.4+

Binyamin
8 Sep, 2023, 17:27

To always find out which version work with your appwrite go to your Appwrite and add /versions to the url For example in the cloud https://cloud.appwrite.io/versions

mzharfanw
8 Sep, 2023, 17:31

Thanks man @Binyamin for the guides, it helps me a lot.🙌

mzharfanw
8 Sep, 2023, 17:32

[SOLVED] Flutter Error for User Models

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