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
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...