mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5657] [Bug]: Problem in XHTTP after upgrading from v3.3.1 to v3.4.1 #3942
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
@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:
sessionPlacementsessionIDPlacementsessionKeysessionIDKeyThe panel in v3.4.1 emits the new names and migrates stored inbounds on the fly (
liftXhttpSessionIDKeysininternal/web/service/xray.go:1119, Zod preprocess infrontend/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, andnoGRPCHeaderare now removed from the xray-coreconfig.jsonat startup (StripInboundXhttpClientFieldsininternal/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:
x-ui→ "Panel status". The version must be ≥ v26.6.22 for the renamed session keys to be recognized.xhttpSettingsblock as it appears in the generated config (/usr/local/x-ui/bin/config.jsonafter the panel starts — redact any sensitive values).bash <(curl ...)frominstall.shto 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.
@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).
@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.