
appwrite.ts
TypeScript
const account = new Account(client);
export const appwrite = { account }
+page.server.ts
TypeScript
import { appwrite } from '$lib/appwrite';
export const load: PageServerLoad = async ({ locals }) => {
console.log("appwrite.account", await appwrite.account.get())
}
Error: AppwriteException: User (role: guests) missing scope (account) Why am I getting this error?
TL;DR
Title: Account Scope Error when Passing Account on Server
Error: AppwriteException: User (role: guests) missing scope (account)
Issue: The error occurs because the user role 'guests' does not have the necessary scope 'account' required to access the account information.
Solution: Grant the 'account' scope to the 'guests' role in the Appwrite dashboard or assign a different role with the 'account' scope to the user.Recommended threads
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- Is it possible to cancel an ongoing file...
When uploading a file to storage, is there a way to cancel the upload in progress so the file is not saved or partially stored?
