Why do I get Cloud error even though I'm using Prefect Server? Error: "prefect.exceptions.AuthorizationError: Malformed response received from Cloud - please ensure that you are authenticated"

View in #prefect-server on Slack

Devin_Flake @Devin_Flake: Hi - I’m using Prefect Server and I’m trying to register a flow into a project but I’m getting the following error:

prefect register --project "Tests" --path hello_world.py
... lots of output ...
prefect.exceptions.AuthorizationError: Malformed response received from Cloud - please ensure that you are authenticated. See `prefect auth login --help`.

I have my .prefect/config.toml configured to use my Server but since I’m not using the Cloud, I’m not sure about the auth or API key

Kevin_Kho @Kevin_Kho: It seems like your registration is pointing to Cloud? Do prefect backend server and maybe prefect auth logout so that you dont have any lingering keys

Devin_Flake @Devin_Flake: ah - prefect backend server seemed to do it - thanks!