Ankit ManiyaOriginal post
Rank 3: Container
Hi everyone,
I'm trying to create a database schema using an Appwrite Function written in Dart from Appwrite console, but I'm getting an authorization error when the function runs.
Plain text
Dart version: 3.5.1dart_appwrite: 13.0.0``````Error:request.path :: /create_database_schemaNative logs detected. Use context.log() or context.error() for better experience.Error while checking or creating database: AppwriteException: general_unauthorized_scope, User (role: guests) missing scopes (["databases.read"]) (401)```Summary
Appwrite function was getting an error related to unauthorized scope while creating a database due to running as a guest without an API key. Issue resolved by adding the API key to the Appwrite client.