[GH-ISSUE #3987] Subscription endpoint returns 500 for XHTTP/SplitHTTP inbounds #2700

Closed
opened 2026-10-31 20:27:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @nnemirovsky on GitHub (Apr 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3987

Description

The subscription endpoint returns HTTP 500 for clients on XHTTP (SplitHTTP) inbounds. The share link in the client info panel generates correctly, but the subscription service crashes when trying to generate the same link.

Steps to reproduce

  1. Create a VLESS inbound with xhttp transport and reality security
  2. Add a client with a Subscription ID
  3. Access the subscription URL: https://host:port/sub/<subscription_id>
  4. Returns HTTP 500 with empty body

Expected behavior

The subscription endpoint should return the base64-encoded VLESS share link, same as what the client info panel shows.

Working vs broken

  • VLESS-Reality (tcp) subscription: works
  • VLESS-WS subscription: works
  • VLESS-XHTTP subscription: 500 error
  • VLESS-XHTTP share link from info panel: works (correct vless:// link generated)
  • Combined Reality + WS subscription (same Subscription ID): works
  • Combined Reality + XHTTP subscription: 500 error

Environment

  • 3x-ui v2.8.11
  • Xray-core 26.3.27
  • Docker deployment
Originally created by @nnemirovsky on GitHub (Apr 1, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3987 ## Description The subscription endpoint returns HTTP 500 for clients on XHTTP (SplitHTTP) inbounds. The share link in the client info panel generates correctly, but the subscription service crashes when trying to generate the same link. ## Steps to reproduce 1. Create a VLESS inbound with `xhttp` transport and `reality` security 2. Add a client with a Subscription ID 3. Access the subscription URL: `https://host:port/sub/<subscription_id>` 4. Returns HTTP 500 with empty body ## Expected behavior The subscription endpoint should return the base64-encoded VLESS share link, same as what the client info panel shows. ## Working vs broken - VLESS-Reality (tcp) subscription: works - VLESS-WS subscription: works - VLESS-XHTTP subscription: **500 error** - VLESS-XHTTP share link from info panel: works (correct vless:// link generated) - Combined Reality + WS subscription (same Subscription ID): works - Combined Reality + XHTTP subscription: **500 error** ## Environment - 3x-ui v2.8.11 - Xray-core 26.3.27 - Docker deployment
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#2700
No description provided.