Emma Keil-Vine
02/24/2023, 7:24 PMCannot 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? TIA!Ryan Peden
02/24/2023, 8:54 PMprefect cloud login
and choosing browser-based login.Emma Keil-Vine
02/24/2023, 8:56 PMprefect cloud worksplace ls
) I get Unable to authenticate. Please ensure your credentials are correct.
-- is there anyway to check what credentials it's referencing?Ryan Peden
02/24/2023, 9:01 PMprefect config view --show-secrets
should show you what it is trying to use.Emma Keil-Vine
02/24/2023, 9:05 PMpcu
) -- so something is overriding the key I use to login?Ryan Peden
02/24/2023, 9:07 PM(from profile)
after the API key?prefect profile create cloud
, then prefect profile use cloud
.
Then, run the settings command to see if the key is still getting overridden. If not, logging in with your new API key should work.
If you don't mind getting rid of all your old settings and starting fresh, running rm -rf ~/.prefect
should also solve the problem, but you'd lose saved settings and flow run history stored there.Emma Keil-Vine
02/24/2023, 9:11 PM(from env)
-- I cleared the old keys from env
but now if I check env it's listed againRyan Peden
02/24/2023, 9:14 PMunset PREFECT_API_KEY
, does that get rid of it?
Since it seems to be added to your environment variables automatically, I wonder if it is getting set in .bashrc
or .zshrc
or something similar? Or if you're on Windows and it's saved in your system env variables, it would get re-added any time you open a new terminal.Emma Keil-Vine
02/24/2023, 9:31 PMRyan Peden
02/24/2023, 10:27 PM