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)
I think you are accessing data which is accessible to guests role.
Try to change permissions of the documents you want to access without logged in users
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)
@Hassanmrwt Please help
Post the code please
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.
AppwriteException: User (role: guests) missing scope (account)
@Rishav Hey! Did u find the solution? I am facing similar problem
Feel free to create a new <#1072905050399191082> post after searching old posts
Recommended threads
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...