Skip to content
Back

"401 Unauthorized: AppwriteException - User (role: guests) Missing Scope (account) Error

  • 0
  • Web
swapnil
23 Oct, 2024, 16:58

Failed to load resource: the server responded with a status of 401 () auth.js:47 Appwrite service :: getCurrentUser :: error AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=1b3b9ad7:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=1b3b9ad7:488:24) cloud.appwrite.io/v1/account:1

TypeScript
   Failed to load resource: the server responded with a status of 401 ()

auth.js:47 Appwrite service :: getCurrentUser :: error AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=1b3b9ad7:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=1b3b9ad7:488:24)

TL;DR
Developers are encountering a 401 Unauthorized error due to a missing scope issue with the 'account' for users with the role 'guests' in Appwrite. To resolve this, the role 'guests' needs to have the necessary 'account' scope assigned to it.
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