[GH-ISSUE #2972] User deletion via API fails with "record not found" error for users with 0B traffic (v2.5.5) #1985

Closed
opened 2026-10-31 20:22:24 +07:00 by bsakaguchi · 1 comment
Owner

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 found
This 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

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
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 found ` This 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 - [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:22:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Security-1337 commented on GitHub (May 14, 2025):

Any version about this bug?)

<!-- gh-comment-id:2881117318 --> @Security-1337 commented on GitHub (May 14, 2025): Any version about this bug?)
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#1985
No description provided.