Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying the absence of a user in the API #1540

Closed
mahdiMGF2 opened this issue Jan 6, 2025 · 1 comment
Closed

Displaying the absence of a user in the API #1540

mahdiMGF2 opened this issue Jan 6, 2025 · 1 comment
Labels
invalid This doesn't seem right

Comments

@mahdiMGF2
Copy link

In the endpoint inbound, when we enter the ID, if it does not exist, an error is correctly returned, as in the example below.

{
    "success": false,
    "msg": "Obtain Failed: record not found",
    "obj": null
}

But when giving email in client endpoint, if email does not exist, no error is returned. Please check this.

{
    "success": true,
    "msg": "",
    "obj": null
}

@mahdiMGF2 mahdiMGF2 added the bug Something isn't working label Jan 6, 2025
@alireza0 alireza0 added to deploy To be deployed during the time invalid This doesn't seem right and removed bug Something isn't working to deploy To be deployed during the time labels Jan 22, 2025
@alireza0
Copy link
Owner

We don't have any client endpoint in api.
When you want to get an inbounds, id is a key field which actions needs this failure. It is not a search!
But when you are searching for client's traffic, if the result is empty, it means there is no traffic record of email.

As far as clients has no table in x-ui database, this approach is totaly true

@alireza0 alireza0 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants