Back

[CLOSED] Unauthorized Error

  • 0
  • Databases
  • Flutter
dammy
1 Oct, 2023, 10:27
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.
dammy
1 Oct, 2023, 10:28
TypeScript
final databaseChecker = await appwriteData.databases.listDocuments(
        databaseId: 'users_database',
        collectionId: 'student_info',
        queries: [Query.equal('mat_num', studentMatNum.toString())]);
``|`
james54
1 Oct, 2023, 10:31

did you add any access permission in your collection?

dammy
1 Oct, 2023, 10:31

yes

james54
1 Oct, 2023, 10:32

can you send screenshot of that ?

dammy
1 Oct, 2023, 10:33
james54
1 Oct, 2023, 10:34

also please check your Database & Collection ids carefully

dammy
1 Oct, 2023, 10:38

Id wasn't required

Drake
5 Oct, 2023, 16:42

What happens if you grant read access to Any?

dammy
11 Oct, 2023, 09:45

The error occured during the downtime appwrite cloud experienced @Steven

Drake
13 Oct, 2023, 18:18

So is it all good now?

dammy
18 Oct, 2023, 13:19

yes but server response is pretty slow @Steven

Drake
18 Oct, 2023, 15:55

[CLOSED] Unauthorized Error

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