https://prefect.io logo
Title
r

Rafal

06/15/2020, 4:07 PM
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

Chris White

06/15/2020, 4:07 PM
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

Rafal

06/15/2020, 4:09 PM
@Chris White thanks! Can I switched it in docker-compose autmatically via env variable?
c

Chris White

06/15/2020, 4:11 PM
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

delphi

07/27/2020, 7:25 AM
Thanks a lot for helping me solved the same problem.
c

Chris White

07/27/2020, 3:09 PM
@Marvin archive “AuthorizationError: No agent API token provided.”