Daniil Ponizov

    Daniil Ponizov

    9 months ago
    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:
    line 831, in _verify_token
      raise AuthorizationError("No agent API token provided.")
    prefect.exceptions.AuthorizationError: No agent API token provided.
    Anna Geller

    Anna Geller

    9 months ago
    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
    In general, the easiest way to do that would be to modify config.toml on this machine and adding:
    [server]
    endpoint = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"