`raise AuthorizationError("No agent API token prov...
# prefect-community
r
raise AuthorizationError("No agent API token provided.")
prefect.utilities.exceptions.AuthorizationError: No agent API token provided.
- I've got this error even though server is up and running. Any ideas?
c
HI @Rafal - this is because you are running an agent against the Cloud API; you should run
prefect backend server
to update your local settings to point to a local API
r
@Chris White thanks! Can I switched it in docker-compose autmatically via env variable?
c
This isn’t a setting related to your docker compose file. The docker compose file sets up the API running on your local machine, and your agent + the flows it submits (which all run independently of docker compose) are the things we’re changing to point to that local API instead of the Cloud API
👍 1
d
Thanks a lot for helping me solved the same problem.
c
@Marvin archive “AuthorizationError: No agent API token provided.”