https://prefect.io logo
#prefect-community
Title
# prefect-community
j

Jonathan Mathews

04/05/2022, 11:00 AM
Hi, I’m trying to follow this blog post here and I’m failing at the first hurdle. When I run
prefect auth login --key <replaced with my key>
I get the following error:
Unauthorized. Invalid Prefect Cloud API key.
The cloud UI says my key has been created
a

Anna Geller

04/05/2022, 11:08 AM
Can you paste the output of
prefect diagnostics
? How do you create the API key - can you create a new one and make sure that it's valid (not expired)?
j

Jonathan Mathews

04/05/2022, 11:10 AM
Sure, here’s the output:
Copy code
❯ prefect diagnostics
{
  "config_overrides": {},
  "env_vars": [],
  "system_information": {
    "platform": "macOS-10.16-x86_64-i386-64bit",
    "prefect_backend": "cloud",
    "prefect_version": "0.15.12",
    "python_version": "3.8.12"
  }
}
I created it via the cloud UI following the instructions and left the expiration date blank
I’ve created several and none of them seem to work. Also tried encapsulating the key in double quotes
a

Anna Geller

04/05/2022, 11:15 AM
did you create it from this page? https://cloud.prefect.io/user/keys
I was able to reproduce it. You're doing everything correctly. I got `ValueError: The
tenant_id
must be a valid UUID. Got ''.` - I will communicate this with the team and let you know once we know more. Thanks for reporting this!
@Jonathan Mathews we have a fix! If you install Prefect from this PR branch, the error should be gone. We plan to make a new release of Prefect 1.0 today, so tomorrow installing prefect from pip should already have the fix. Again, thanks for flagging this and LMK if you have any other questions
j

Jonathan Mathews

04/05/2022, 12:27 PM
Thanks so much! Will give that a try
👍 1
6 Views