Hi, I am getting 500 server error on calling createPhoneToken(D.unique(), phone_number) This was working fine since few days and today it is not working from the past 6 hours or so. Here is the complete execution error log
Error generating OTP for +91XXXXXXXXXX: app.XXXXXXXXXXXXXXX0@service.cloud.appwrite.io (role: applications) missing scope (sessions.write) Error: app.XXXXXXXXXXXXXXX0@service.cloud.appwrite.io (role: applications) missing scope (sessions.write) at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:206:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Account.createPhoneToken (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/account.js:1219:16) at async generateOTP (file:///usr/local/server/src/function/src/main.js:14:21) at async Module.default (file:///usr/local/server/src/function/src/main.js:68: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:73:20) at process.processTicksAndRejections (node:internal/process/task_queues:95: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
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...