flutter: Server Error: {message: User (role: guests) missing scope (account), code: 401, type: general_unauthorized_scope, version: 1.3.7}
Share code snippet please
You might trying to access Account without login which results in this error
appWriteLogicExtender.databases.createDocument( databaseId: "idDB", collectionId: "idCol", documentId: ID.unique(), // permissions: ['"user":userID'], data: { "userFullName": nameController.text, "accountCreationDate": dateTime.timeZoneName, "userStatus": "normalUser", "userMail": emailController.text, "phoneNumber": phoneNumberController.text, "userID": profile.$id, });
must I have session before that?
cause I dont want the document to be created always at login
I set permission to any
This should work now
I do not know why it did not
Set collection permissions to any with write to true
Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
okay @Steven I appreciate you
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...