mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3052] [BUG] addClient API returns empty response (v2.6.0) #2042
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#2042
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 @keeldj on GitHub (May 31, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3052
Describe the bug
Hello,
I'm experiencing an issue with the
addClientAPI endpoint in 3x-ui v2.6.0.Problem:
When attempting to add a client to an inbound via the
/panel/inbound/addClientAPI endpoint, the server returns an empty string ("") as a response, instead of a JSON object (either success or error JSON).Expected behavior:
The API should return a valid JSON response, indicating either successful client addition or an error message in JSON format.
How to repeat the problem?
Steps to reproduce:
/panel/inbound/addClientwith a valid session token and a client configuration in the request body (as shown in "Request Body" below).My setup:
v2.6.0(latest stable release from GitHub releases page)25.5.16(from XUI logs)bash <(curl -Ls https://raw.githubusercontent.com/MHSanaei/3x-ui/main/install.sh)(which currently installs v2.6.0)Request Method: POST
Request URL Example:
http://193.23.210.34:7030/IafRxicsn9yqpDN/panel/inbound/addClientRequest Headers:
Cookie: _xui_session=<session_token_obtained_from_login>Content-Type: application/jsonRequest Body (example from bot logs):
@kaivdev commented on GitHub (Jun 1, 2025):
I think the problem may be that you write id": "inbound-53459 in the id field, try writing just "id": 53459, although the number is too large for id.