Rank 2: Process
I have been trying to create a document from a cloud function triggered by the web console.
It fails ( please check the log image)
As you can see, there is "APPWRITE_FUNCTION_USER_ID: "
First of all the Id "639d5549a1e8caadcc8d" does not exist anywhere.....
and as per the documentation
Executions triggered in the Appwrite console will be prepended with "admin-".
This does not happen and i get an ID that does not belong to any user...
and that permission issue is confusing me because i thought that an execution from the server is supposed to be trusted?
here is a small code snippet
const database = new sdk.Databases(client); console.log("Requesting for base item creation"); let baseItem = await database.createDocument( getSterFashionDbId, fashionItemsCollectionId, sdk.ID.unique(), stringifiedItemData );
I am comfused about this... at first i thought that it was because i was in 1.2.0 but when i updated to 1.3 later on.. got the same issue