Vincent Berthoumieux
I'm trying to create a var but i get the error 'Variable with the same ID already exists in this project.' But this function id has no vars defined and the project has 3 vars but with different ids. what am I missing ?
TypeScript
➜ dev git:(main) ✗ appwrite functions create-variable --key useLocalEndpoint --value false --function-id xnotes-cancel-schedule
ℹ Info: For detailed error pass the --verbose or --report flag
✗ Error: Variable with the same ID already exists in this project. Try again with a different ID.
➜ dev git:(main) ✗ appwrite functions list-variables --function-id xnotes-cancel-schedule
total : 0
variables
[]
➜ dev git:(main) ✗ aw project list-variables
total : 3
variables
->> xClientSecret, xRedirectUri, xRedirectUri
TL;DR
Issue: Getting 'Variable with the same ID already exists in this project' error when trying to create a variable for a function, even though the function ID has no variables defined and the project has 3 variables with different IDs.
Solution: Check the function and project variables to ensure there are no duplicates IDs present, and try creating the variable again with a unique ID that does not already exist in the project. Recommended threads
- AppwriteException: Invalid `permissions`...
I'm encountering an issue with the node-appwrite SDK while attempting to create a storage bucket with custom permissions. Despite following the official documen...
- Appwrite Function's URL cannot be reache...
Hello, guys. I am running Appwrite on my domain appwrite.example.com. It is listening to 2780 and 27443 for HTTP & HTTPS respectively. On the same server, I ha...
- [OpenID Connect] Logto IdP with Appwrite...
I use Convex and Appwrite for my projects, and to solve the authorization problem, I decided to connect Logto as a single authorization center for all projects ...