[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
- Appwrite Cloud project is paused and nev...
Hi Appwrite Team & Community, I am facing a problem with one of my Appwrite Cloud projects which seems to be identical to the other cases of "paused projects" ...
- Timed out waiting for runtime error
execution id 6a3e0791978712d81ee0 im having issue with appwrite function runtime performance. even after 4gbram and cpu same function sometimes completes in a...
- Project auto-blocked after load testing ...
Hi team π My project has been automatically blocked with the message: "Project is currently blocked β Access to this project is restricted. Contact support if...