Hi, I’m trying to follow this blog post <here> and...
# prefect-community
j
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
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
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
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
Thanks so much! Will give that a try
👍 1