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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...