mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4638] [Bug]: Telegram Bot blocking web panel login when API is unreachable (network timeout) #3191
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#3191
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 @Lexus125 on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4638
Describe the bug
Problem: When Telegram Bot is enabled on a server located in a region where Telegram API is blocked (e.g., Russia), the web panel becomes impossible to log into. After entering username/password, the browser shows a "Network Error" and login fails.
Expected behavior: Telegram Bot should fail silently or log errors without affecting web panel authentication. Panel login should work regardless of Telegram Bot connectivity.
Actual behavior: Web panel authentication hangs/times out and returns network error. The issue immediately resolves after disabling Telegram Bot via database.
How to reproduce the problem
Install 3X-UI on a server where Telegram API is blocked (e.g., Russia)
Enable Telegram Bot in panel settings (tgBotEnable = true)
Configure bot with valid token and chat ID
Try to log into web panel
Observe "Network Error" in browser after clicking login
Expected behavior
Panel login should work normally regardless of whether Telegram Bot can reach the API. Failed Telegram notifications should not block or interfere with web authentication.
Actual behavior
After entering credentials and clicking login, the browser shows "Network Error" and login fails. The web panel becomes completely inaccessible until Telegram Bot is disabled via database.
Relevant logs
Screenshots
No response
3x-ui version
3.2.0
Xray-core version
26.5.9
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04.4 LTS
Which parts of the panel are affected?
Backend (API endpoints, login, settings)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@walkedbyitself commented on GitHub (May 29, 2026):
There's quickfix in #4585 , but ye, we still need a plan B for that situations.
https://github.com/MHSanaei/3x-ui/issues/4585#issuecomment-4552912858