[SOLVED] Appwrite Function getting general_unauthorized_scope (databases.read) while creating db
- 0
- Resolved
- 2
- Functions
- Cloud
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.
Dart version: 3.5.1
dart_appwrite: 13.0.0```
```Error:
request.path :: /create_database_schema
Native 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)```
Is there anyway I can assign permission to Database as we are assigning to tables?
[SOLVED] Appwrite Function getting general_unauthorized_scope (databases.read) while creating db
Your function runs as a guest because Appwrite client inside it has no api key
Yes I figured it out, thank you for your response.
Recommended threads
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...