[GH-ISSUE #5657] [Bug]: Problem in XHTTP after upgrading from v3.3.1 to v3.4.1 #3942

Closed
opened 2026-10-31 20:36:03 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @H-Vaezi on GitHub (Jun 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5657

Describe the bug

After i upgraded the panel from pre version to the latest, my xhttp inbounds do not work, also when i create new xhttp inbounds, they are not working(xhttp with or without padding and custom parameters and auto mode). the same ip on WS are ok. I need to rollback to v3.3.1.

How to reproduce the problem

  1. create xhttp tls inbound in version 3.4.1 and try to connect it. it does not work. the same config works on v3.3.1.
  2. also you can create vless xhttp tls with auto mode and obfs and customized names for header and query fields with a white CF ip as external proxy in version 3.3.1 and test it that it works, then update to v3.4.1 then you can see it does not works any more.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.1

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

ubuntu 22.04

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).
Originally created by @H-Vaezi on GitHub (Jun 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5657 ### Describe the bug After i upgraded the panel from pre version to the latest, my xhttp inbounds do not work, also when i create new xhttp inbounds, they are not working(xhttp with or without padding and custom parameters and auto mode). the same ip on WS are ok. I need to rollback to v3.3.1. ### How to reproduce the problem 1. create xhttp tls inbound in version 3.4.1 and try to connect it. it does not work. the same config works on v3.3.1. 2. also you can create vless xhttp tls with auto mode and obfs and customized names for header and query fields with a white CF ip as external proxy in version 3.3.1 and test it that it works, then update to v3.4.1 then you can see it does not works any more. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.1 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system ubuntu 22.04 ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] 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:36:03 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 29, 2026):

The jump from v3.3.1 to v3.4.1 includes two changes that can each break XHTTP inbounds; one is almost certainly the cause here.

Breaking change 1 — xray-core major version bump

The bundled xray-core changed from v26.6.1 (in v3.3.1) to v26.6.27 (in v3.4.1). xray-core v26.6.22 (PR #6258) renamed two XHTTP session-config keys with no backward-compatibility fallback in the core:

Old name (pre-v26.6.22) New name (v26.6.22+)
sessionPlacement sessionIDPlacement
sessionKey sessionIDKey

The panel in v3.4.1 emits the new names and migrates stored inbounds on the fly (liftXhttpSessionIDKeys in internal/web/service/xray.go:1119, Zod preprocess in frontend/src/schemas/protocols/stream/xhttp.ts:41). If the xray-core binary on your system was not updated to v26.6.27 during the upgrade — for example, because you manually selected an older version via the panel's "Update Xray-core" feature — the core will silently ignore those renamed keys and the handshake will fail.

Breaking change 2 — client-only XHTTP fields stripped from server config (fix(inbound) commit, #5349)

Fields such as xmux, downloadSettings, scMinPostsIntervalMs, uplinkChunkSize, and noGRPCHeader are now removed from the xray-core config.json at startup (StripInboundXhttpClientFields in internal/database/model/model.go:236). They are preserved in the database and still propagated to clients via share links. If your inbound depends on a field from that list being active on the server side this would cause a mismatch, though the xray-core documentation marks all of these as client-only.

To confirm the cause, please provide:

  1. The running xray-core version. It appears in the panel's status card or via x-ui → "Panel status". The version must be ≥ v26.6.22 for the renamed session keys to be recognized.
  2. The xray-core log output from the moment you restart the panel and try to connect. Enable logging if needed (panel → Settings → Log Level → Debug), then post the relevant section.
  3. The full xhttpSettings block as it appears in the generated config (/usr/local/x-ui/bin/config.json after the panel starts — redact any sensitive values).
  4. Which XHTTP mode and security layer (TLS / REALITY / none) you are using, and which client app you are testing with.
  5. Whether you used bash <(curl ...) from install.sh to upgrade, or a different method (Docker, manual binary swap, etc.).

If the xray-core version shown in the panel is older than v26.6.22, the immediate workaround is to update it to the latest via the panel (Settings → Xray version) or via x-ui → "Update Xray-core".

This reply was generated automatically; a maintainer may follow up with additional context.

<!-- gh-comment-id:4832742960 --> @github-actions[bot] commented on GitHub (Jun 29, 2026): The jump from v3.3.1 to v3.4.1 includes two changes that can each break XHTTP inbounds; one is almost certainly the cause here. **Breaking change 1 — xray-core major version bump** The bundled xray-core changed from v26.6.1 (in v3.3.1) to v26.6.27 (in v3.4.1). xray-core v26.6.22 (PR #6258) renamed two XHTTP session-config keys with no backward-compatibility fallback in the core: | Old name (pre-v26.6.22) | New name (v26.6.22+) | |---|---| | `sessionPlacement` | `sessionIDPlacement` | | `sessionKey` | `sessionIDKey` | The panel in v3.4.1 emits the new names and migrates stored inbounds on the fly (`liftXhttpSessionIDKeys` in `internal/web/service/xray.go:1119`, Zod preprocess in `frontend/src/schemas/protocols/stream/xhttp.ts:41`). If the xray-core binary on your system was **not** updated to v26.6.27 during the upgrade — for example, because you manually selected an older version via the panel's "Update Xray-core" feature — the core will silently ignore those renamed keys and the handshake will fail. **Breaking change 2 — client-only XHTTP fields stripped from server config** (`fix(inbound)` commit, #5349) Fields such as `xmux`, `downloadSettings`, `scMinPostsIntervalMs`, `uplinkChunkSize`, and `noGRPCHeader` are now removed from the xray-core `config.json` at startup (`StripInboundXhttpClientFields` in `internal/database/model/model.go:236`). They are preserved in the database and still propagated to clients via share links. If your inbound depends on a field from that list being active on the server side this would cause a mismatch, though the xray-core documentation marks all of these as client-only. **To confirm the cause, please provide:** 1. The running xray-core version. It appears in the panel's status card or via `x-ui` → "Panel status". The version must be ≥ v26.6.22 for the renamed session keys to be recognized. 2. The xray-core log output from the moment you restart the panel and try to connect. Enable logging if needed (panel → Settings → Log Level → Debug), then post the relevant section. 3. The full `xhttpSettings` block as it appears in the generated config (`/usr/local/x-ui/bin/config.json` after the panel starts — redact any sensitive values). 4. Which XHTTP mode and security layer (TLS / REALITY / none) you are using, and which client app you are testing with. 5. Whether you used `bash <(curl ...)` from `install.sh` to upgrade, or a different method (Docker, manual binary swap, etc.). If the xray-core version shown in the panel is older than v26.6.22, the immediate workaround is to update it to the latest via the panel (Settings → Xray version) or via `x-ui` → "Update Xray-core". *This reply was generated automatically; a maintainer may follow up with additional context.*
Author
Owner

@H-Ir commented on GitHub (Jul 2, 2026):

Assuming the error is caused solely by the issues mentioned in the AI's response, as noted, XHTTP inbounds created by the panel in the new version are not currently usable with the official clients. This is because version 26.6.22 is still in pre-release, while clients such as v2rayNG and Happ are still using older, more stable cores. As a result, the panel's current XHTTP implementation is effectively unusable until those clients update their cores.

Additionally, reverting to the legacy version (3.3.1) through the panel resolved the issue for me.

My suggestion for the future is that if the core introduces similar breaking changes without backward compatibility and are in pre-release state, the panel should continue using the older core until the official clients like v2rayNG have been updated. Alternatively, when an older core version is selected in the panel, the panel could automatically behave as the legacy version (although I realize this approach would be more difficult to maintain).

<!-- gh-comment-id:4861559624 --> @H-Ir commented on GitHub (Jul 2, 2026): Assuming the error is caused solely by the issues mentioned in the AI's response, as noted, XHTTP inbounds created by the panel in the new version are not currently usable with the official clients. This is because version 26.6.22 is still in pre-release, while clients such as v2rayNG and Happ are still using older, more stable cores. As a result, the panel's current XHTTP implementation is effectively unusable until those clients update their cores. Additionally, reverting to the legacy version (3.3.1) through the panel resolved the issue for me. My suggestion for the future is that if the core introduces similar breaking changes without backward compatibility and are in pre-release state, the panel should continue using the older core until the official clients like v2rayNG have been updated. Alternatively, when an older core version is selected in the panel, the panel could automatically behave as the legacy version (although I realize this approach would be more difficult to maintain).
Author
Owner

@MHSanaei commented on GitHub (Jul 2, 2026):

Closing for lack of the requested information. All evidence points to the xray-core binary on your system being older than v26.6.22, which renamed the XHTTP session keys the v3.4.x panel now emits — updating the core via the panel (Settings → Xray version) should fix it. If XHTTP still fails with xray-core ≥ v26.6.22 (also note #5621's edit-form fix just landed for inbounds created before the rename), please reopen with the core version and the Xray log from a connection attempt.

<!-- gh-comment-id:4863449406 --> @MHSanaei commented on GitHub (Jul 2, 2026): Closing for lack of the requested information. All evidence points to the xray-core binary on your system being older than v26.6.22, which renamed the XHTTP session keys the v3.4.x panel now emits — updating the core via the panel (Settings → Xray version) should fix it. If XHTTP still fails with xray-core ≥ v26.6.22 (also note #5621's edit-form fix just landed for inbounds created before the rename), please reopen with the core version and the Xray log from a connection attempt.
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#3942
No description provided.