I already ask this question in thread, but didnt g...
# ask-community
d
I already ask this question in thread, but didnt get answer. I get this error, when trying to set the api with the --api argument at prefect agent start:
Copy code
line 831, in _verify_token
  raise AuthorizationError("No agent API token provided.")
prefect.exceptions.AuthorizationError: No agent API token provided.
a
I see. Did you change the backend to Server before doing that? could be that otherwise it tries to connect to the cloud API and requiring an API key
upvote 1
In general, the easiest way to do that would be to modify config.toml on this machine and adding:
Copy code
[server]
endpoint = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"