https://prefect.io logo
Title
a

Andreas Nord

08/08/2022, 3:07 PM
Hi! I suddenly get a strange intermittent failure on one of my flows:
Error during execution of task: ValueError('A secret name must be provided.')
The secret task runs for 18 minutes (?) and it downstream tasks succeeds somehow, see image. I am on Prefect 1.2.4
👀 1
b

Bianca Hoch

08/08/2022, 3:53 PM
Hi Andreas, you mentioned that this error is intermittent, so the PrefectSecret does work sometimes?
Just asking for clarification, as this may be an issue related to the Prefect Secrets API.
a

Andreas Nord

08/08/2022, 3:55 PM
Yes exactly, the case with empty secret name is not possible with my code
b

Bianca Hoch

08/08/2022, 4:30 PM
If possible, could you try adding retries to your PrefectSecret?
PrefectSecret("YOUR_SECRET", max_retries=3, retry_delay=timedelta(seconds=5))
a

Andreas Nord

08/09/2022, 7:01 AM
will try thanks
I get the same problem
b

Bianca Hoch

08/10/2022, 2:03 PM
Would you mind opening a GitHub issue that describes what you are experiencing? Our engineers will be able to take it from there. When creating the issue, select 'Report a bug' and add the "v1" tag to it as well.