Skip to content
Back

Failing to get user account after login on Windows platform

  • 0
  • Flutter
  • Auth
eric34
13 Aug, 2025, 17:08

Running the attached integration test on Windows platform I get the following error. Any idea of what I'm doing wrong ?

πŸ” Starting... 01:22 +0: Appwrite Authentication Integration Tests should authenticate with email and password
πŸ” Starting integration test... πŸ” Logging in... βœ… Login successful! πŸ“‹ Session ID: 689cc578e5268b8134cf πŸ‘€ User ID: 67be3f91795b8c504ec0 πŸ•’ Session expires: 2026-08-13T17:03:52.938+00:00 πŸ”— Provider: email

πŸ‘€Setting client session id...

πŸ‘€ Getting user info... ❌ Error: AppwriteException: general_unauthorized_scope, User (role: guests) missing scope (account) (401) Code: 401 Type: general_unauthorized_scope Message: User (role: guests) missing scope (account) ══║ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• The following AppwriteException was thrown running a test: general_unauthorized_scope, User (role: guests) missing scope (account) (401)

TL;DR
Developers are unable to retrieve user account information after login on Windows platform due to missing account scope for the user role. To fix this, update the user's role to include the necessary account scope.
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