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
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Appwrite Sites triggers builds for all p...
I connected my Appwrite Sites to my Git app on my self hosted Appwrite server, but even though I only connected it to main branch, it creates a build every sing...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...