Ok second question - trying to register a flow us...
# prefect-community
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?
There are no API Keys for Server
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)
You might not be configured to the right API endpoint? You can try leaving
blank and it will just connect
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