I am creating an Appwrite Function and it is supposed to create some documents in the database. I am facing permissions issues when creating the document. "{"message":"An error occured","error":"User (role: guests) missing scope (users.read)"}" Something I understand that I need to authorize the request. However I am unable to figure out how to do this and need some help.
Here is my implementation functions .createExecution("<functionId>", JSON.stringify(payload)) .then((response) => { console.log('func success: \n', response); }) .catch((error) => { console.log('func failed: \n', error); });
Is that the full code? That error usually indicates that you're not signed in
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 ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...