Back

The current user is not authorized to perform the requested action.

  • 0
  • Users
  • Accounts
  • Web
  • Cloud
k_vasen
8 Jan, 2024, 14:58

I am try to list the document of products on client side. But it is showing The current user is not authorized to perform the requested action. It worked for me before. I have tried many times but this error keep showing.

TL;DR
The user is receiving a 401 error message saying "The current user is not authorized to perform the requested action." They are trying to list the documents of products on the client side but keep encountering this error. It used to work before and they have enabled document level permissions. The issue also seems to be related to the user being logged out, as it works fine in that case but not when logged in.
k_vasen
8 Jan, 2024, 15:00

{ "message": "The current user is not authorized to perform the requested action.", "code": 401, "type": "user_unauthorized", "version": "0.12.32" } This is the reponse I am getting

k_vasen
8 Jan, 2024, 15:00
k_vasen
8 Jan, 2024, 15:01

When the user is logged out. It is working

k_vasen
8 Jan, 2024, 16:13

Any help??

Mohammed Anas
8 Jan, 2024, 17:02
Mohammed Anas
8 Jan, 2024, 17:02

works fine on local instance of appwrite

Mohammed Anas
8 Jan, 2024, 17:03
ideclon
8 Jan, 2024, 17:33

Do you have Document Level Permissions enabled?

k_vasen
8 Jan, 2024, 18:32

Yes... Document level permissions are enabled

k_vasen
8 Jan, 2024, 18:33

Any users can read...

k_vasen
8 Jan, 2024, 18:33

It worked properly few days before....

k_vasen
8 Jan, 2024, 18:33

It may be a bug idk.. 😐

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