https://prefect.io logo
Title
t

Tomás Emilio Silva Ebensperger

06/11/2021, 1:32 AM
I changed to the new api key for cloud but i get this error when registering the flows
prefect.utilities.exceptions.ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured.
c

Chris White

06/11/2021, 1:41 AM
Hi Tomas - that error occurs whenever a request is sent that doesn't contain any authorization information, so you may have misconfigured something?
t

Tomás Emilio Silva Ebensperger

06/11/2021, 2:12 AM
thanks i fixed it i had
[cloud.agent]
auth_token = 'blalba'
then to fix it i had to add
[cloud.agent]
auth_token = 'blalba'

[cloud]
auth_token = 'blalba'
weird
maybe i missed something
c

Chris White

06/11/2021, 2:14 AM
the cloud auth token is meant for keys that represent you as a user (e.g. if you use the CLI or are registering flows); the cloud.agent token is for any agent that is run on that machine -- in many situations these have different permissions
t

Tomás Emilio Silva Ebensperger

06/11/2021, 2:17 AM
aaa excellent to know, thank you Chris!!
c

Chris White

06/11/2021, 2:19 AM
anytime! glad to help