[GH-ISSUE #5312] [Bug]: happ error The subscription server returned a 404 nout found #3723

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

Originally created by @Flix790 on GitHub (Jun 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5312

Describe the bug

When importing a subscription, the error message Subscription server returned error 404 nout found

How to reproduce the problem

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

Image

3x-ui version

3.3.1

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 23

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 @Flix790 on GitHub (Jun 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5312 ### Describe the bug When importing a subscription, the error message Subscription server returned error 404 nout found ### How to reproduce the problem ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots <img width="376" height="45" alt="Image" src="https://github.com/user-attachments/assets/0c644071-a126-4382-9b1b-a7099bacae5a" /> ### 3x-ui version 3.3.1 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 23 ### 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:34:29 +07:00
Author
Owner

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

A 404 from the 3x-ui subscription server is not a code error; it is the server's explicit response for "no matching enabled client." The relevant logic is in internal/sub/controller.go (writeSubError) and internal/sub/service.go (getInboundsBySubId). It is returned when the subscription ID in the URL does not match any enabled inbound in the database.

Before this can be diagnosed further, several things need to be clarified:

  1. Is kinesy.fun your own server running 3x-ui? If this is a subscription URL from a third-party provider, the issue is on their server, not in the 3x-ui software you installed.

  2. Was the subscription URL copied directly from the panel's client info dialog? If you constructed it manually, verify the subscription ID matches the sub_id field stored for the client in the panel.

  3. What is configured under Panel Settings → Subscription → "Subscription Path"? The default is /sub/. The URL you provided uses the path /DRWZtiDlLJ/, which only works if that path was set in subscription settings and the sub server is reachable on port 443 (default sub port is 2096).

  4. What protocol does the inbound use? The subscription server only generates links for these protocols: VMess, VLESS, Trojan, Shadowsocks, and Hysteria2. Inbounds using WireGuard, HTTP, SOCKS, Dokodemo-door, or MTProto are excluded by design and will produce a 404 if a client's sub_id belongs only to those inbound types.

  5. Is the inbound enabled? A disabled inbound (toggled off in the panel) is also excluded from the subscription query.

If you are the admin of the server at kinesy.fun, check the above points in order. If the subscription URL was generated by the panel (not hand-crafted), confirm that the inbound and client are both enabled and use a supported protocol. You can verify whether the subscription server is running and on which port via x-ui on the server (option 1 shows server status including sub server port).

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

<!-- gh-comment-id:4701278900 --> @github-actions[bot] commented on GitHub (Jun 14, 2026): A 404 from the 3x-ui subscription server is not a code error; it is the server's explicit response for "no matching enabled client." The relevant logic is in `internal/sub/controller.go` (`writeSubError`) and `internal/sub/service.go` (`getInboundsBySubId`). It is returned when the subscription ID in the URL does not match any enabled inbound in the database. Before this can be diagnosed further, several things need to be clarified: 1. **Is `kinesy.fun` your own server running 3x-ui?** If this is a subscription URL from a third-party provider, the issue is on their server, not in the 3x-ui software you installed. 2. **Was the subscription URL copied directly from the panel's client info dialog?** If you constructed it manually, verify the subscription ID matches the `sub_id` field stored for the client in the panel. 3. **What is configured under Panel Settings → Subscription → "Subscription Path"?** The default is `/sub/`. The URL you provided uses the path `/DRWZtiDlLJ/`, which only works if that path was set in subscription settings and the sub server is reachable on port 443 (default sub port is `2096`). 4. **What protocol does the inbound use?** The subscription server only generates links for these protocols: VMess, VLESS, Trojan, Shadowsocks, and Hysteria2. Inbounds using WireGuard, HTTP, SOCKS, Dokodemo-door, or MTProto are excluded by design and will produce a 404 if a client's `sub_id` belongs only to those inbound types. 5. **Is the inbound enabled?** A disabled inbound (toggled off in the panel) is also excluded from the subscription query. If you are the admin of the server at `kinesy.fun`, check the above points in order. If the subscription URL was generated by the panel (not hand-crafted), confirm that the inbound and client are both enabled and use a supported protocol. You can verify whether the subscription server is running and on which port via `x-ui` on the server (option 1 shows server status including sub server port). *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@9en9i commented on GitHub (Jun 27, 2026):

I encountered the same thing

<!-- gh-comment-id:4820530078 --> @9en9i commented on GitHub (Jun 27, 2026): I encountered the same thing
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#3723
No description provided.