https://prefect.io logo
Title
e

Emma Keil-Vine

02/24/2023, 7:17 PM
Hi there! I'm running into an issue with api authentication. I've sucessfully logged in through my terminal, pasting my API key when prompted but when I try to run a flow locally I get the following error:
Cannot create flow run. Failed to reach API at <https://api.prefect.cloud/api/accounts/a9c0f124-ca06-4646-a501-57a405ebf3c7/workspaces/43f1b8a7-ed9c-46d2-a88a-55eef95b8ef7/>.
-- does anyone have any recommendations?
my active profile shows the same api_url and the correct api key from prefect.cloud
b

Bianca Hoch

03/01/2023, 5:01 PM
Hey Emma! Are you still running into this issue?
What is the output when you type
prefect config view
in your terminal?
FWIW, mine looks like this:
PREFECT_PROFILE='bianca-sandbox'
PREFECT_API_KEY='********' (from profile)
PREFECT_API_URL='<https://api.prefect.cloud/api/accounts/0ff44498-d380-4d7b-bd68-9b52da03823f/workspaces/646ea561-8b44-454c-86e1-5b33ff8b6ca7>'