https://prefect.io logo
Title
h

Hamza Naanani

08/11/2022, 12:44 PM
Hello, I'm trying to log into prefect cloud 2.0 using the command
$ prefect cloud login --key xxx_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
But i get the following error
Unable to authenticate with Prefect Cloud. Please ensure your credentials are correct.
I don't believe the problem is from the credentials as I'm just pasting the command key I get when I create a new API key on the cloud console, I also tried creating different keys but I still get the same issue. I'm on a linux machine, behind corporate firewall and I'm setting the variables
SSL_CERT_FILE HTTPS_PROXY REQUESTS_CA_BUNDLE
to the correct value. Can someone help me on this ?
1
t

Taylor Curran

08/11/2022, 12:57 PM
HI Hamza, I’m not sure what is causing that issue, but I have fixed similar errors before by resetting or reconfiguring my profile. I would reference these docs.
Or instructions from this tutorial.
h

Hamza Naanani

08/11/2022, 3:03 PM
Thanks for helping me
:gratitude-thank-you: 1
I found out the problem was from on the company firewall rules, so even though I set up the proxy correctly the request gets blocked. But prefect is not that verbose on the source of the error, and it makes it seems like it's a credentials problem. I believe that we need a verbose mode in the CLI so that we can get the stack trace of the error and understand it better.
t

Taylor Curran

08/12/2022, 2:11 PM
Thank you for following up Hazmza, glad you found the source of the problem and sorry the error message wasn’t more helpful. 🙂 You could add you experience and suggestion as an issue here. I know our engineering team would appreciate it.