Here's my situation:
- Deploy the function first
- Add API key(other service) in env
- Redeploy
- The function still cannot recognize my API key.
I think it might using my first deployment even though I redeploy. How much I wait for? Or is it a bug?
if you update an environment variable, on going to your Function > Deployments screen you should see this modal
if its not there, it means that the function is using the latest values
But, it doesn't recognize my new env key
I've already checked that modal and redeployed
can you share the code? and the values?
many things can be wrong like difference in casing, typo etc.
When I create a new function freshly, then it works.
I think it rather be a CDN caching problem or so what
can you try using
// os.Environ() returns a slice of strings in the format "key=value"
envVars := os.Environ()
to see all the env values being set in the environment
@Chirag Aggarwal Even though I redeployed, actually it might be using old one
strange.. yeah
cc @Meldiron
Recommended threads
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...