[GH-ISSUE #3924] 3x-ui generates invalid VLESS fallback when using XHTTP (dest empty) causing Xray to fail to start #2655

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

Originally created by @Venprool on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3924

Describe the bug

Description

When creating a VLESS inbound using XHTTP transport in 3x-ui, the generated Xray configuration contains an invalid fallback entry with an empty dest.
This causes Xray to fail to start with the error:

VLESS fallbacks: please fill in a valid value for every "dest"

This appears to happen specifically when using:

VLESS
+ XHTTP
+ Reality

Even though no fallback was configured in the UI.


Additional notes

Attempted to manually remove the fallbacks section from config.json. This does not resolve the issue because 3x-ui automatically regenerates the configuration and immediately reintroduces the invalid fallback entry.


Environment

3x-ui version: 2.8.11
Xray-core: bundled with 3x-ui
Transport: XHTTP
Security: Reality
Mode tested: packet-up and stream-up (same issue)

How to repeat the problem?

Steps to reproduce

  1. Create a new inbound in 3x-ui
  2. Set protocol to:
VLESS
  1. Set transport:
XHTTP
  1. Enable:
Reality
  1. Save inbound
  2. Xray fails to start.

Expected action

Expected behavior

If no fallback is configured in the UI, the generated config should either:

  1. omit the fallbacks field entirely

or

  1. generate a valid fallback structure.

Received action

Error log

Example error from Xray:

failed to build inbound handler for protocol vless
VLESS fallbacks: please fill in a valid value for every "dest"

Generated config snippet

The generated inbound contains this block:

"fallbacks": [
  {
    "alpn": "",
    "dest": "",
    "name": "",
    "path": "",
    "xver": 0
  }
]

Since dest is empty, Xray rejects the configuration.

3x-ui Version

2.8.11

Xray-core Version

26.2.6

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 @Venprool on GitHub (Mar 15, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3924 ### Describe the bug ## Description When creating a **VLESS inbound using XHTTP transport** in 3x-ui, the generated Xray configuration contains an invalid fallback entry with an empty `dest`. This causes Xray to fail to start with the error: ``` VLESS fallbacks: please fill in a valid value for every "dest" ``` This appears to happen specifically when using: ``` VLESS + XHTTP + Reality ``` Even though no fallback was configured in the UI. --- ## Additional notes Attempted to manually remove the `fallbacks` section from `config.json`. This does not resolve the issue because 3x-ui automatically regenerates the configuration and immediately reintroduces the invalid fallback entry. --- ## Environment ``` 3x-ui version: 2.8.11 Xray-core: bundled with 3x-ui Transport: XHTTP Security: Reality Mode tested: packet-up and stream-up (same issue) ``` ### How to repeat the problem? ## Steps to reproduce 1. Create a new inbound in **3x-ui** 2. Set protocol to: ``` VLESS ``` 3. Set transport: ``` XHTTP ``` 4. Enable: ``` Reality ``` 5. Save inbound 6. Xray fails to start. ### Expected action ## Expected behavior If no fallback is configured in the UI, the generated config should either: 1. **omit the `fallbacks` field entirely** or 2. generate a valid fallback structure. ### Received action ## Error log Example error from Xray: ``` failed to build inbound handler for protocol vless VLESS fallbacks: please fill in a valid value for every "dest" ``` --- ## Generated config snippet The generated inbound contains this block: ```json "fallbacks": [ { "alpn": "", "dest": "", "name": "", "path": "", "xver": 0 } ] ``` Since `dest` is empty, Xray rejects the configuration. ### 3x-ui Version 2.8.11 ### Xray-core Version 26.2.6 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:27:01 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@radchenk0 commented on GitHub (Apr 11, 2026):

Did you find any workaround?

<!-- gh-comment-id:4229767362 --> @radchenk0 commented on GitHub (Apr 11, 2026): Did you find any workaround?
Author
Owner

@Venprool commented on GitHub (Apr 11, 2026):

Did you find any workaround?

Unfortunately no, I'm waiting for a fix.

<!-- gh-comment-id:4229771749 --> @Venprool commented on GitHub (Apr 11, 2026): > Did you find any workaround? Unfortunately no, I'm waiting for a fix.
Author
Owner

@radchenk0 commented on GitHub (Apr 11, 2026):

As far as I can see in my case, fallbacks section disappears from the ui (defo there is a conditional rendering) when I change transport from tcp to xhttp, not sure what I can do. Probably we need to patch inbound config manually via the console

<!-- gh-comment-id:4229772257 --> @radchenk0 commented on GitHub (Apr 11, 2026): As far as I can see in my case, fallbacks section disappears from the ui (defo there is a conditional rendering) when I change transport from tcp to xhttp, not sure what I can do. Probably we need to patch inbound config manually via the console
Author
Owner

@d3l1f3r commented on GitHub (Apr 13, 2026):

edit inbound in /etc/x-ui/x-ui.db with sqlite3. This is temporary solve.

<!-- gh-comment-id:4236509332 --> @d3l1f3r commented on GitHub (Apr 13, 2026): edit inbound in /etc/x-ui/x-ui.db with sqlite3. This is temporary solve.
Author
Owner

@exxojay commented on GitHub (May 14, 2026):

edit inbound in /etc/x-ui/x-ui.db with sqlite3. This is temporary solve.

Please am a noob, How can i change port 2096 to another port on the x-ui.db ? I have sqlite3 installed already.

thank you

<!-- gh-comment-id:4448447676 --> @exxojay commented on GitHub (May 14, 2026): > edit inbound in /etc/x-ui/x-ui.db with sqlite3. This is temporary solve. Please am a noob, How can i change port 2096 to another port on the x-ui.db ? I have sqlite3 installed already. thank you
Author
Owner

@inok94 commented on GitHub (Jun 6, 2026):

I updated x-ui to 3.2.8 and went to edit Inbound "Modify Inbound" -> Advanced. Scrolled down and set "dest": "80",
like that
"fallbacks": [
{
"alpn": "",
"dest": "80",
"name": "",
"path": "",
"xver": 0
}
] or you can remove this block

<!-- gh-comment-id:4636515911 --> @inok94 commented on GitHub (Jun 6, 2026): I updated x-ui to 3.2.8 and went to edit Inbound "Modify Inbound" -> Advanced. Scrolled down and set "dest": "80", like that "fallbacks": [ { "alpn": "", "dest": "80", "name": "", "path": "", "xver": 0 } ] or you can remove this block
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#2655
No description provided.