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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...