[GH-ISSUE #4645] [Bug]: Subscription - User info header returns total=0; expire=0 for all clients in multi-node setup (data limit & expiry show as unlimited/no-expiry in clients) #3197

Closed
opened 2026-10-31 20:30:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @x4mznbxmhm-eng on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4645

Describe the bug

In a multi-node setup (master panel generating subscriptions, traffic routed through separate nodes), the subscription endpoint returns a valid Subscription-Userinfo header, but all values are zero — even though the panel UI shows the correct Total GB and Expiry Date for the client.
Because total=0 and expire=0, client apps (Hiddify, etc.) interpret the subscription as unlimited data and no expiry, while the panel itself displays the correct limits.
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Profile-Update-Interval: 12
Profile-Web-Page-Url: https://master.example.com:2096//
Routing-Enable: true
Subscription-Userinfo: upload=0; download=0; total=0; expire=0
Content-Length: 1124

How to reproduce the problem

1.	Set up a master panel with one or more nodes (clients added on master, traffic served from node).
2. Create a client with a Total GB limit (e.g. 300 GB) and an expiry date.
3. Confirm the panel UI shows the correct limit and expiry.
4. Fetch the subscription:
curl -s -D - -H "User-Agent: Hiddify" "https://master.example.com:2096/<path>/<id>" -o /dev/null
5.	Observe that Subscription-Userinfo returns total=0; expire=0 despite the UI showing correct values.

Expected behavior

The Subscription-Userinfo header should reflect the client’s actual configured values, e.g.:
Subscription-Userinfo: upload=...; download=...; total=322122547200; expire=1735689600

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.0.2

Xray-core version

26.5.9

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Multi-node (sub-nodes)

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).
Originally created by @x4mznbxmhm-eng on GitHub (May 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4645 ### Describe the bug In a multi-node setup (master panel generating subscriptions, traffic routed through separate nodes), the subscription endpoint returns a valid Subscription-Userinfo header, but all values are zero — even though the panel UI shows the correct Total GB and Expiry Date for the client. Because total=0 and expire=0, client apps (Hiddify, etc.) interpret the subscription as unlimited data and no expiry, while the panel itself displays the correct limits. HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 Profile-Update-Interval: 12 Profile-Web-Page-Url: https://master.example.com:2096/<path>/<id> Routing-Enable: true Subscription-Userinfo: upload=0; download=0; total=0; expire=0 Content-Length: 1124 ### How to reproduce the problem 1. Set up a master panel with one or more nodes (clients added on master, traffic served from node). 2. Create a client with a Total GB limit (e.g. 300 GB) and an expiry date. 3. Confirm the panel UI shows the correct limit and expiry. 4. Fetch the subscription: curl -s -D - -H "User-Agent: Hiddify" "https://master.example.com:2096/<path>/<id>" -o /dev/null 5. Observe that Subscription-Userinfo returns total=0; expire=0 despite the UI showing correct values. ### Expected behavior The Subscription-Userinfo header should reflect the client’s actual configured values, e.g.: Subscription-Userinfo: upload=...; download=...; total=322122547200; expire=1735689600 ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.0.2 ### Xray-core version 26.5.9 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Multi-node (sub-nodes) ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) 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). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:30:44 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@heisetanghulu commented on GitHub (May 29, 2026):

I encountered the same problem.

<!-- gh-comment-id:4572946760 --> @heisetanghulu commented on GitHub (May 29, 2026): I encountered the same problem.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3197
No description provided.