https://prefect.io logo
y

YD

07/14/2023, 4:27 PM
Error when running on laptop When I run a test flow on my laptop: https://discourse.prefect.io/t/how-continue-flow-even-if-task-fails/3274 Beside the issue I have with what I actually trying to test, I also get the error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
any suggestions on how to solve this issue ? code:
Copy code
from prefect import flow, task


@task()
def task_one(x):
    return x * 2


@flow()
def my_func():
    x = 5
    r = task_one.submit(x)
    return r.result()


y = my_func()
print(y)
returns
Copy code
...
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
09:57:22.768 | INFO    | Flow run 'caped-kittiwake' - Finished in state Completed()