Rank 1: Thread
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 | {
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 | {
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 | {
code: 401,
type: 'general_unauthorized_scope',
response: [Object],
digest: '763244607'
}```