[GH-ISSUE #4638] [Bug]: Telegram Bot blocking web panel login when API is unreachable (network timeout) #3191

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

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

May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Execution error getUpdates: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out
May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Getting updates: telego: getUpdates: internal execution: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out
May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Retrying getting updates in 8s...
*(The above repeats every ~8-10 seconds indefinitely)*

Browser DevTools console error:


Network Error
at (anonymous) @ assets/vendor-axios-Cjt9V376.js:3
at post @ assets/QueryProvider-5_bse79e.js:1
at login-CDaXKgAE.js:1
Browser Network tab: POST request to /login shows (failed) status with no response.

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 ```shell May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Execution error getUpdates: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Getting updates: telego: getUpdates: internal execution: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out May 29 05:46:46 server x-ui[48078]: [Fri May 29 05:46:46 MSK 2026] ERROR Retrying getting updates in 8s... *(The above repeats every ~8-10 seconds indefinitely)* Browser DevTools console error: Network Error at (anonymous) @ assets/vendor-axios-Cjt9V376.js:3 at post @ assets/QueryProvider-5_bse79e.js:1 at login-CDaXKgAE.js:1 Browser Network tab: POST request to /login shows (failed) status with no response. ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:30:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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

<!-- gh-comment-id:4570222231 --> @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
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#3191
No description provided.