https://prefect.io logo
Title
n

Naimesh Chaudhari

04/11/2022, 6:12 PM
Ok second question - trying to register a flow using python library. prefect_client = Client(api_server=prefect_url). Getting an error "You have not set an API key for authentication." How would I get an API Key?
k

Kevin Kho

04/11/2022, 6:13 PM
There are no API Keys for Server
n

Naimesh Chaudhari

04/11/2022, 6:13 PM
right that's what I thought so why am i getting this error?
is my code wrong>
prefect_client = Client(api_server=prefect_url)#, api_key="test") schedule = IntervalSchedule(interval=timedelta(minutes=2))
training_flow_id = prefect_client.register(flow, project_name=prefect_project_name)
k

Kevin Kho

04/11/2022, 6:14 PM
You might not be configured to the right API endpoint? You can try leaving
Client()
blank and it will just connect
n

Naimesh Chaudhari

04/11/2022, 6:14 PM
ok let me try that
Malformed response received from Cloud - please ensure that you are authenticated. See
prefect auth login --help
if i leave it blank
running it from google colab
I think i got it. I had to provide the tenant id
👍 1