mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #2972] User deletion via API fails with "record not found" error for users with 0B traffic (v2.5.5) #1985
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#1985
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 @Security-1337 on GitHub (May 4, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2972
Describe the bug
Hello!
When attempting to delete a user via the API, the operation fails if the user has 0B traffic. Instead of successful deletion, the following error is returned in the logs:
Response status is not successful, message: Something went wrong! Failed: record not foundThis issue occurs on version 2.5.5 of the panel. The user remains undeleted despite having no traffic usage.
How to repeat the problem?
Create a new user or find an existing user with 0B traffic.
Attempt to delete the user using the API.
Observe the error in the logs and confirm the user was not removed.
Expected action
User with 0B traffic should be successfully deleted via the API.
Received action
API returns an error, and user is not deleted.
3x-ui Version
2.5.5
Xray-core Version
No response
Checklist
@Security-1337 commented on GitHub (May 14, 2025):
Any version about this bug?)