Hello Community! We are getting this error quite o...
# ask-community
k
Hello Community! We are getting this error quite often in the last weeks:
KeyError: 'The secret <some_secret> was not found.  Please ensure that it was set correctly in your tenant: <https://docs.prefect.io/orchestration/concepts/secrets.html>'
Now this happens in a mapped task, only for one or two of those mapped tasks, others work fine. The secret exists and is clearly usable. Re-running the flow usually helps, however we are not enjoying that re-running part so much. Any advice?
m
get same error yesterday
a
You can add a secret to storage if you use it repeatedly: https://prefect-community.slack.com/archives/CL09KU1K7/p1630655644059700
k
I think Anna’s suggestion is right, otherwise you will pull the secret for each mapped that. Putting it in the storage will cache it.