Skip to content

Windows: 'Unknown error', message: "Value of 'password encoded as UTF-16' is longer than the platform limit of 2560 chars #1309

Description

@khsater

When attempting to authenticate on Windows via, e.g. ak config setup --authentik-url https://authentik.company, I receive the following error after completing authentication in the browser:
Waiting for authentication...
Error running command: failed to register profile with agent

Caused by:
code: 'Unknown error', message: "Value of 'password encoded as UTF-16' is longer than the platform limit of 2560 chars"

Location:
ak-cli\src\commands\config.rs:107:10

This is in both cmd and powershell. I'm able to authenticate with an enrollment token in the user profile authentik.yaml, but attempting to switch profiles results in the error. Let me know if I can do anything to diagnose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions