Hello,
I have this error and this is my code :
TypeScript
const client = new Client()
.setEndpoint(process.env.APPWRITE_FUNCTION_API_ENDPOINT)
.setProject(process.env.APPWRITE_PROJECT_ID_KEY)
.setKey(process.env.APPWRITE_API_KEY);
const users = new Users(client);
let user;
if (bodyJson.email) {
user = await users.updateEmail(params.id, bodyJson.email);
}
if (bodyJson.name) {
user = await users.updateName(params.id, bodyJson.name);
}
return {
code: 200,
response: {
user,
},
};
I have already checked my 3 env variables, they are good.
My bodyJson.name is good too and same for my params.id
TL;DR
Developers are encountering an error due to missing scope "users.write" for the "guests" role. Ensure the mentioned role has the required scope.Recommended threads
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...