Back

AppwriteException: general_unauthorized_scope

  • 0
  • Self Hosted
  • Flutter
Namka
30 Nov, 2023, 12:17

I have a same problem in appwrite 0.14.x AppwriteException: general_unauthorized_scope Do i Need to create new report ? It was working on 0.13 also it was working on 0.15 too but not working in 0.14.x

login(String email, String password) async { try { final result = await account.createSession( email: email.trim(), password: password.trim()); print('result.userId'); print(result.toMap()); // _user = await getAccount(); models.User res = await account.get(); _user = UserModel.User.fromJson(res.toMap()); _isLoggedIn = true; if (_user != null) { await _fetchKYCDocument(); await checkAndUpdateLanguagePreference(); await getAccountSessions(); await _getUserAccount(); } // _mixpanel.identify( // _user!.id); // track users in mixpanel based on appwrite user id notifyListeners(); } on AppwriteException catch (e) { print('error in login'); print(e); if (e.code == 400 || e.code == 401) { _isUserError = true; } else { _isUserError = false; } } }

TL;DR
The user is encountering an 'AppwriteException: general_unauthorized_scope' error in their appwrite 0.14.x version. The error occurs during the login process. The user also mentions that the code was working in the 0.13 and 0.15 versions. Unfortunately, there is no solution mentioned in the support thread.
Drake
30 Nov, 2023, 15:59

FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

Drake
30 Nov, 2023, 16:00

Anything else to the error message?

Namka
30 Nov, 2023, 16:01

Nothing

Namka
30 Nov, 2023, 16:01

Docker logs also not helpful

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