Skip to content

Failed to login: AUTH: unexpected authenticator run state. Expected: START #50

@nodje

Description

@nodje

Trying to reuse API calls after upgrading its version, I get this error and can't seem to be able to authenticate against my TN remotely:

pip install git+https://github.com/truenas/api_client.git@release/25.04.2.1 # (after trying without version, I tried matching my exact TN version to make sure)
then generate a token for an admin user

export api_key="xxxxxxxxxxxxxxxxxxx"
midclt --uri ws://192.168.0.13/websocket -K ${api_key} call system.info

results in
Failed to login: AUTH: unexpected authenticator run state. Expected: START

I've tried other EP like:

midclt --uri ws://192.168.0.13/api/current -K ${api_key} call system.info

and got the same error.

The documentation for this API is so scarce it doesn't even mention what URL context the EP is supposed to be available on!

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