I/flutter (16021): {message: The current user is not authorized to perform the requested action., code: 401, type: user_unauthorized, version: 0.11.5}
I made sure user is logged in and all users can read database collection
final databaseChecker = await appwriteData.databases.listDocuments(
databaseId: 'users_database',
collectionId: 'student_info',
queries: [Query.equal('mat_num', studentMatNum.toString())]);
``|`
did you add any access permission in your collection?
yes
can you send screenshot of that ?
also please check your Database & Collection ids carefully
Id wasn't required
What happens if you grant read access to Any?
The error occured during the downtime appwrite cloud experienced @Steven
So is it all good now?
yes but server response is pretty slow @Steven
[CLOSED] Unauthorized Error
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...