I get this error message, i can confirm i have permission set up in console: ``` ⨯ AppwriteException: userwi@gmail.com (role: users) missing scope (collections.read) at async ChatLayout (file://C%3A/Users/USER/Desktop/anonyline/anonyyy/app/chat/layout.tsx:13:15) 11 | const user = await getSafeUser(); 12 | if (!user) return redirect("/login");
13 | const col = await room(); | ^ 14 | console.log(col) 15 | return ( 16 | <main className="flex"> { code: 401, type: 'general_unauthorized_scope', response: [Object], digest: '1242841140' } GET /chat 500 in 5739ms GET /chat 500 in 5748ms GET /favicon.ico?favicon.45db1c09.ico 200 in 269ms GET /favicon.ico 200 in 575ms GET /favicon.ico?favicon.45db1c09.ico 200 in 224ms GET /favicon.ico?favicon.45db1c09.ico 200 in 564ms GET /favicon.ico 200 in 248ms ✓ Compiled in 95ms ○ Compiling /chat ... ✓ Compiled /chat in 620ms ⨯ AppwriteException: ayomideoluwatola1@gmail.com (role: users) missing scope (collections.read) at async ChatLayout (file://C%3A/Users/USER/Desktop/anonyline/anonyyy/app/chat/layout.tsx:13:15) 11 | const user = await getSafeUser(); 12 | if (!user) return redirect("/login"); 13 | const col = await room(); | ^ 14 | console.log(col) 15 | return ( 16 | <main className="flex"> { code: 401, type: 'general_unauthorized_scope', response: [Object], digest: '3048564607' } ⨯ AppwriteException: userwi@gmail.com (role: users) missing scope (collections.read) at async ChatLayout (file://C%3A/Users/USER/Desktop/anonyline/anonyyy/app/chat/layout.tsx:13:15) 11 | const user = await getSafeUser(); 12 | if (!user) return redirect("/login"); 13 | const col = await room(); | ^ 14 | console.log(col) 15 | return ( 16 | <main className="flex"> { code: 401, type: 'general_unauthorized_scope', response: [Object], digest: '763244607' }```
What scopes did you enable for your API key?
Recommended threads
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Appwrite cloud DB server error 500
Getting this error
- appwrite indexes not working (?
i have this index: ``` "indexes": [ { "key": "single-user-per-event", "type": "unique", ...