Isak
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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...