https://prefect.io logo
Title
k

Krishnan Chandra

08/25/2022, 5:45 PM
I’m trying to set up CI on a flow repo using the template here: https://github.com/anna-geller/dataflow-ops/blob/main/.github/workflows/main_simple.yaml but am running into a 404 issue with the API similar to the one reported here: https://prefect-community.slack.com/archives/CL09KU1K7/p1661349987899419 I’ve double-checked the API URL being used in CI against the one on my local CLI and have verified that the API Key being used is active as well. Is there a better way to debug why I can’t register flows to Prefect Cloud?
1
b

Bianca Hoch

08/25/2022, 5:48 PM
Hello Krishnan, we've had a user report a similar issue here, and the issue was the formatting of the API URL: https://prefect-community.slack.com/archives/CL09KU1K7/p1660888686653459?thread_ts=1660824735.083039&cid=CL09KU1K7
Could you check that as well?
k

Krishnan Chandra

08/25/2022, 5:50 PM
Thanks for that pointer! The URL is:
<https://api.prefect.cloud/api/accounts/[REDACTED]/workspaces/[REDACTED]>
which does look right
I figured out the issue - it was that I hadn’t given the CI service account access to the workspace through Workspace Sharing 🙂
🚀 1
b

Bianca Hoch

08/25/2022, 5:55 PM
Aha! That'll do it as well. Great work.