Whenever I request getSession() I am getting below always. Unable to understand what is happening. Will appreciate if someone can help.
Error fetching session: Error: app.66b0586b002b820a4e90@service.cloud.appwrite.io (role: applications) missing scope (account) at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:206:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Account.getSession (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/account.js:947:16) at async checkSession (file:///usr/local/server/src/function/src/main.js:15:25) at async Module.default (file:///usr/local/server/src/function/src/main.js:85:22) at async execute (/usr/local/server/src/server.js:208:16) at async action (/usr/local/server/src/server.js:225:7) at async /usr/local/server/src/server.js:14:5
TypeError: res.status is not a function at Module.default (file:///usr/local/server/src/function/src/main.js:91:20) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async execute (/usr/local/server/src/server.js:208:16) at async action (/usr/local/server/src/server.js:225:7) at async /usr/local/server/src/server.js:14:5
#🚑│support
getSession() returning error
Recommended threads
- Dynamic Roles
I tried to store a row with this permissions: permissions.push( Permission.read(Role.users("verified")), Permission.write(Role.label(`c-${calend...
 - appwrite auth problem regarding the sess...
Hi, I have problem with auth. When I try to login/signup using OTP, at the end session.secret is empty, i have searched online and in the docs but i cannot find...
 - log out failure
I am trying to set up the user sign up/log in/log out and while I have got the sign up/log in to work, log out keeps failing. i am keeping it simple with only r...