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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?