[GH-ISSUE #4347] Clash/Mihomo subscription returns Error! when all subscribed inbounds use VLESS + XHTTP #2960

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

Originally created by @GMagisk9527 on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4347

Describe the bug

When all subscribed inbounds for a Sub ID use VLESS + XHTTP, the Clash/Mihomo subscription endpoint returns Error!.

The normal subscription link may still work, but the Clash/Mihomo subscription does not generate any YAML proxies.

I checked sub/subClashService.go and it looks like buildProxy() calls applyTransport(). Currently applyTransport() handles tcp, ws, and grpc, but there is no case "xhttp". Therefore XHTTP proxies are skipped and, when all matched proxies are XHTTP, GetClash() returns an empty config. Then subController.go returns Error!.

Related issue: #4071

This issue may be related to #4071, but this report is specifically about the current v3.0.1 behavior where Clash/Mihomo subscription returns Error! when all matched proxies use XHTTP, because applyTransport() does not handle xhttp.

How to repeat the problem?

  1. Open the Inbounds page.
  2. Create a VLESS inbound with XHTTP transport.
  3. Use TLS and put it behind CDN, for example Cloudflare.
  4. Add a client and set a Sub ID.
  5. Make sure Clash/Mihomo subscription is enabled in panel settings.
  6. Open /clash/<subId> in browser or with curl.
  7. The endpoint returns Error!.

Example test:

curl -i "http://127.0.0.1:<subscription-port>/clash/<subId>"

If I add a non-XHTTP inbound such as VLESS + WS with the same Sub ID, the Clash subscription can generate YAML for that non-XHTTP proxy. But when all matched inbounds are XHTTP, it returns Error!.

Expected action

No response

Received action

No response

3x-ui Version

3.0.1

Xray-core Version

No response

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @GMagisk9527 on GitHub (May 13, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4347 ### Describe the bug When all subscribed inbounds for a Sub ID use VLESS + XHTTP, the Clash/Mihomo subscription endpoint returns `Error!`. The normal subscription link may still work, but the Clash/Mihomo subscription does not generate any YAML proxies. I checked `sub/subClashService.go` and it looks like `buildProxy()` calls `applyTransport()`. Currently `applyTransport()` handles `tcp`, `ws`, and `grpc`, but there is no `case "xhttp"`. Therefore XHTTP proxies are skipped and, when all matched proxies are XHTTP, `GetClash()` returns an empty config. Then `subController.go` returns `Error!`. Related issue: #4071 This issue may be related to #4071, but this report is specifically about the current v3.0.1 behavior where Clash/Mihomo subscription returns `Error!` when all matched proxies use XHTTP, because `applyTransport()` does not handle `xhttp`. ### How to repeat the problem? 1. Open the `Inbounds` page. 2. Create a VLESS inbound with XHTTP transport. 3. Use TLS and put it behind CDN, for example Cloudflare. 4. Add a client and set a Sub ID. 5. Make sure Clash/Mihomo subscription is enabled in panel settings. 6. Open `/clash/<subId>` in browser or with curl. 7. The endpoint returns `Error!`. Example test: ```bash curl -i "http://127.0.0.1:<subscription-port>/clash/<subId>" ``` If I add a non-XHTTP inbound such as VLESS + WS with the same Sub ID, the Clash subscription can generate YAML for that non-XHTTP proxy. But when all matched inbounds are XHTTP, it returns Error!. ### Expected action _No response_ ### Received action _No response_ ### 3x-ui Version 3.0.1 ### Xray-core Version _No response_ ### Checklist - [x] This bug report is written entirely in English. - [ ] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:29:11 +07:00
  • closed this issue
  • added the
    bug
    label
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#2960
No description provided.