mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4557] [Bug]: #3121
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#3121
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 @chinajonical on GitHub (May 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4557
Describe the bug
3X-UI,API Invalid,PHP code:
$api = 'http://[Server IP]:[PORT]/[PATH]//login'';
$ch = curl_init();
$data = [
'username' => 'account',
'password' => 'password',
'twoFactorCode' => ''
];
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_URL,$api);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer [Your TOKEN]',
'Accept: application/json'
]);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
The result is empty;
How to reproduce the problem
API result empty;
Expected behavior
API result empty;
Actual behavior
API result empty;
Relevant logs
Screenshots
API result empty;
3x-ui version
3.1.0
Xray-core version
26.5.9
How did you install 3x-ui?
Other (please describe in the bug body)
Operating system
ubuntu 22.04
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?
Yes — Nginx
Before submitting
@Aurora211 commented on GitHub (May 25, 2026):
I encountered the same bug today while writing Python. When 3XUI is behind Nginx's reverse proxy, all API endpoints return a 404 error when using a Token, and normal results cannot be obtained. Are you experiencing the same issue?