Back

Account.get() not working.

  • 0
  • Flutter
  • Auth
  • Cloud
Johannes
4 Apr, 2024, 14:44

I use the flutter client. I can login via the .createEmailPasswordSession(). A session is created in the Appwrite backend, this works perfect. However if i try the Account.get() method it throws a Exception: type 'Null' is not a subtype of type 'bool' which comes from the package:appwrite/src/models/user.dart. If i try fetching the user vie a http request it returns code 200 "{"message":"User (role: guests) missing scope (account)","code":401,"type":"general_unauthorized_scope","version":"0.12.137"}". I have no clue what to do, i think about switching to SupasBase or another alternative.

TL;DR
Developers are facing issues with the Account.get() method in their Flutter client, resulting in a type error and unauthorized scope error. Consider checking the session and permissions, potential switch to Supabase or another alternative if the issue persists.
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