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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...