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
- How can I disable client-side account re...
Hi everyone! I’m currently building a game backend using Appwrite, and I’d like to prevent users from creating new accounts directly through the client. My go...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...