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
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- 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...
- Function crash first run after a while
Big issue I’m facing , almost all functions crash or run for a very long time the first time i run them after a long time without running them I have a “help-c...