
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
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
