Skip to content

[Bug]: -getApiToken does not work as expected #5145

@brazhenko

Description

@brazhenko

Describe the bug

When I run docker exec 3x-ui /app/x-ui setting -getApiToken I expect to see token as in old version, but see
apiToken: (no token).

How to reproduce the problem

  1. Open terminal with 3x-ui running on e.g. on Docker
  2. run root@tw:/opt/3x-ui# docker exec 3x-ui /app/x-ui setting -getApiToken

Expected behavior

I expect either to see token or do not have such option at all.

Actual behavior

No response

Relevant logs

Screenshots

No response

3x-ui version

3.3.0

Xray-core version

No response

How did you install 3x-ui?

Docker / Docker Compose

Operating system

Debian 13

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions