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; } } }
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.
Anything else to the error message?
Nothing
Docker logs also not helpful
Recommended threads
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?