TypeScript
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
TL;DR
The user encountered an "Unauthorized Error" while attempting to access a database collection. This error occurred during downtime experienced by the appwrite cloud. The user asked if granting read access to Any would resolve the issue, but it was not required. They were also asked to check their Database and Collection ids carefully and provide a screenshot if possible. It seems that the user is logged in and all users should be able to read the database collection. Unfortunately, there is no provided solution.TypeScript
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
- Retrieving Data From Backups
Hiya, I have a user requesting for data they accidentally deleted. I don't have document history built into my app. Is there a way to extract data from the auto...
- Help
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.