tablesDB scopes are working for newest version of appwrite cli in locally deployed functions?
- 0
- Self Hosted
- Functions

I am trying to setup local Appwrite instance for testing and managed to pull functions from cloud, now trying to use appwrite push
to localhost for each of my functions, however one of the functions used newest tablesDB scopes in the cloud and it seems there is some issues with them locally (my other functions without tablesDB scopes worked okay).
Error:
AppwriteException [Error]: Invalid `scopes` param: Value must a valid array no longer than 100 items and Value must be one of (sessions.write, users.read, users.write, teams.read, teams.write, databases.read, databases.write, collections.read, collections.write, attributes.read, attributes.write, indexes.read, indexes.write, documents.read, documents.write, files.read, files.write, buckets.read, buckets.write, functions.read, functions.write, sites.read, sites.write, log.read, log.write, execution.read, execution.write, locale.read, avatars.read, health.read, providers.read, providers.write, messages.read, messages.write, topics.read, topics.write, subscribers.read, subscribers.write, targets.read, targets.write, rules.read, rules.write, migrations.read, migrations.write, vcs.read, vcs.write, assistant.read, tokens.read, tokens.write)
at Client.call (/opt/homebrew/Cellar/appwrite/9.1.0/libexec/lib/node_modules/appwrite-cli/lib/client.js:209:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async functionsCreate (/opt/homebrew/Cellar/appwrite/9.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/functions.js:175:16)
at async /opt/homebrew/Cellar/appwrite/9.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/push.js:1497:28
at async Promise.all (index 0)
at async pushFunction (/opt/homebrew/Cellar/appwrite/9.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/push.js:1443:5)
at async pushResources (/opt/homebrew/Cellar/appwrite/9.1.0/libexec/lib/node_modules/appwrite-cli/lib/commands/push.js:962:13) {
code: 400,
response: 'general_argument_invalid'
}
the problematic function config:
{
"$id": "shared-utils-test",
"execute": [
"any"
],
"name": "Shared Utils Test",
"enabled": true,
"logging": true,
"runtime": "node-22",
"scopes": [
"sessions.write",
"users.read",
"users.write",
"teams.read",
"teams.write",
"databases.read",
"databases.write",
"tables.read",
"collections.read",
"tables.write",
"collections.write",
"columns.read",
"attributes.read",
"columns.write",
"attributes.write",
"indexes.read",
"indexes.write",
"rows.read",
"documents.read",
"rows.write",
"documents.write",
"functions.read",
"functions.write",
"execution.read",
"execution.write"
],
"events": [],
"schedule": "",
"timeout": 15,
"entrypoint": "templates/main.js",
"commands": "npm install",
"specification": "s-1vcpu-512mb",
"path": "functions/Shared Utils Test"
}
I have newest appwrite cli version (9.1.0)
Recommended threads
- Suggested docker-compose.yml uses known-...
The version of `docker-compose.yml` in the self-hosted instructions uses the image `appwrite/console:6.0.13` for the `appwrite-console` container. This version ...
- Limit File Upload count?
Is there a way to limit the number of files a user can upload? I know there's a limit of file size but in my case I'd like to limit the user to only upload x am...
- Asynchronous Function Execution via Func...
Hi everyone, Is there a way to call a function via its function domain URL with async execution set to true?
