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
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...