Moderator
I have a very weird error;
In a function I'm using dynamic keys to perform read write operation in rows. I have the scopes for read and write rows.
The function perform successfully listRows at the beginning of the function, but later in the code I have a table holidays with a date and description fields
The previous read are nothing special and it doesn't too much time to read information
Without any permission in the table I get this error
appwrite | [Error]Line: 6732
appwrite | [Error] Method: GET
appwrite | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite | [Error] Type: Utopia\Database\Exception\Authorization
appwrite | [Error] Message: No permissions provided for action 'read'
appwrite | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
If in the table I add users:read I got this error:
appwrite | [Error] Line: 6732
appwrite | [Error] Method: GET
appwrite | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite | [Error] Type: Utopia\Database\Exception\Authorization
appwrite | [Error] Message: Missing "read" permission for role "users". Only "["any","guests"]" scopes are allowed and "["users"]" was given.
appwrite | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
If I add any:read
appwrite | [Error] Line: 184
appwrite | [Error] Method: POST
appwrite | [Error] URL: /v1/tablesdb/:databaseId/tables/:tableId/rows
appwrite | [Error] Type: Appwrite\Extend\Exception
appwrite | [Error] Message: The current user or API key does not have the required scopes to access the requested resource.
appwrite | [Error] File: /usr/src/code/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php
I'm out of ideas to debug this error
I'm using:
Appwrite: 1.8.0
node-appwrite: 20.3.0