Error `(role: applications) missing scope (rules.read)` when deploying self-hosted functions
- 0
- Self Hosted
- Functions
When deploying functions like this:
appwrite client --endpoint mydomain.com --project-id some-id --key some_key
appwrite push functions --all --force --verbose
I get this output:
✓ Success: Setting client
ℹ Info: Validating functions ...
ℹ Info: Checking for changes ...
ℹ Info: Pushing functions ...
⠴ Pushing • api-handler (api_handler) • Ignoring using: .gitignore
⠼ Creating • user-created-handler (user_created_handler) • Ignoring using: .gitignore
⠼ Pushing • app-config-handler (app_config_handler) • Ignoring using: .gitignore(node:94912) ExperimentalWarning: buffer.File is an experimental✗ Error • api-handler (api_handler) • app.projectId@service.mydomain.
✗ Error • user-created-handler (user_created_handler) • app.projectId@service.mydomain
✗ Error • app-config-handler (app_config_handler) • app.projectId@service.mydomain
✓ Success: Successfully pushed 3 functions.
AppwriteException [Error]: app.projectId@service.mydomain.com (role: applications) missing scope (rules.read)
at Client.call (/home/asd/.nvm/versions/node/v18.18.2/lib/node_modules/appwrite-cli/lib/client.js:211:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async proxyListRules (/home/asd/.nvm/versions/node/v18.18.2/lib/node_modules/appwrite-cli/lib/commands/proxy.js:68:16)
at async /home/asd/.nvm/versions/node/v18.18.2/lib/node_modules/appwrite-cli/lib/commands/push.js:1235:37
at async Promise.all (index 0)
at async pushFunction (/home/asd/.nvm/versions/node/v18.18.2/lib/node_modules/appwrite-cli/lib/commands/push.js:1072:5) {
code: 401,
response: 'general_unauthorized_scope'
}
The API key i'm using for the CLI has all scopes enabled. Neither online nor in the Discord here i can find anything on a rules.read scope. The functions do get deployed (they show up in the console), but still wondering about this error. Anyone any idea? v1.6, CLI v6.1.0
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...