Windows 10 Set Up

Hi,

I was able to install Prefect 1.2.2 on my Windows 10 computer. I placed config.toml in my home folder as below:
C:\Users[username].prefect\config.toml

And its content are:
[cloud]
auth_token = “[my_cloud_auth_token]”
[cloud.agent]
auth_token = “[my_cloud_agent_auth_token]”
[logging]

The logging level: NOTSET, DEBUG, INFO, WARNING, ERROR, or CRITICAL

level = “INFO”

The log format

format = “[%(asctime)s] %(levelname)s - %(name)s | %(message)s”

I got this error when I ran my sample python scripts:
prefect.exceptions.AuthorizationError: Malformed response received from Cloud - please ensure that you are authenticated. See prefect auth login --help.

I am sure that my token values are correct. I suspect Prefect still thinks that I am using Prefect local but I wanted to use Prefect cloud. Please help.

Thanks,
Toan

Can you try running prefect backend cloud before you try to authenticate your terminal with Cloud?

Yes, that works. Thanks, anna_geller.

1 Like