Back

AppwriteException: User (role: guests) missing scope (account)

  • 0
  • Accounts
  • Web
Rishav
9 Jun, 2023, 07:48

ERROR User (role: guests) missing scope (account) AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (http://localhost:3000/static/js/bundle.js:77517:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:3000/static/js/bundle.js:77150:24)

TL;DR
User is experiencing the error "AppwriteException: User (role: guests) missing scope (account)" when accessing certain data. The solution is to change the permissions of the documents being accessed so that they are accessible to guests role.
Hassanmrwt
9 Jun, 2023, 07:50

I think you are accessing data which is accessible to guests role.

Hassanmrwt
9 Jun, 2023, 07:51

Try to change permissions of the documents you want to access without logged in users

Rishav
9 Jun, 2023, 07:58

Geetting same error

ERROR User (role: guests) missing scope (account) AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (http://localhost:3000/static/js/bundle.js:77517:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:3000/static/js/bundle.js:77150:24)

Rishav
9 Jun, 2023, 08:08

@Hassanmrwt Please help

Hassanmrwt
9 Jun, 2023, 08:09

Post the code please

Drake
9 Jun, 2023, 17:42

You're probably calling account.get() without a valid session. You should see if there are any previous <#1072905050399191082> posts that can help you.

FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.

Drake
9 Jun, 2023, 17:44

AppwriteException: User (role: guests) missing scope (account)

mitsy0_0
10 Jun, 2023, 17:00

@Rishav Hey! Did u find the solution? I am facing similar problem

Drake
10 Jun, 2023, 17:20

Feel free to create a new <#1072905050399191082> post after searching old posts

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