Issue Setting up Telegram Notification #582

Closed
opened 2026-02-28 01:51:15 -05:00 by deekerman · 14 comments
Owner

Originally created by @darksky82 on GitHub (Nov 23, 2021).

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I am trying to setup telegram notiffication. I have correctly entered the Bot Token and Chat ID (direct chat) and when I test the data the system throws the below message after a long time.
image

Even when I click on the "Auto Get" chat id button, I am given the below error. However, the api.telegram.org link works when I click on it and I get the Chat id from there.
image

👟 Reproduction steps

Try to Set Telegram Notification

👀 Expected behavior

Receive a successful test notification in Telegram

😓 Actual Behavior

Receiving error message
image

🐻 Uptime-Kuma Version

1.10.2

💻 Operating System and Arch

Docker

🌐 Browser

Edge

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

No response

Originally created by @darksky82 on GitHub (Nov 23, 2021). ### ⚠️ Please verify that this bug has NOT been raised before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/uptime-kuma/security/policy) ### Description I am trying to setup telegram notiffication. I have correctly entered the Bot Token and Chat ID (direct chat) and when I test the data the system throws the below message after a long time. ![image](https://user-images.githubusercontent.com/63789013/142975374-85b2aba3-feb8-48ae-95de-1eac0530b8bc.png) Even when I click on the "Auto Get" chat id button, I am given the below error. However, the api.telegram.org link works when I click on it and I get the Chat id from there. ![image](https://user-images.githubusercontent.com/63789013/142975453-68602bf5-fee3-44f5-a650-970ad02843df.png) ### 👟 Reproduction steps Try to Set Telegram Notification ### 👀 Expected behavior Receive a successful test notification in Telegram ### 😓 Actual Behavior Receiving error message ![image](https://user-images.githubusercontent.com/63789013/142975496-b1cd7fe9-b627-4c57-97f0-3d55193580a3.png) ### 🐻 Uptime-Kuma Version 1.10.2 ### 💻 Operating System and Arch Docker ### 🌐 Browser Edge ### 🐋 Docker Version _No response_ ### 🟩 NodeJS Version _No response_ ### 📝 Relevant log output _No response_
deekerman 2026-02-28 01:51:15 -05:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@chakflying commented on GitHub (Nov 23, 2021):

Looks like you somehow got it into an invalid state where it's setting up a non-existent notification. Was there any other errors that happened before, is there any error in the browser console, etc?

@chakflying commented on GitHub (Nov 23, 2021): Looks like you somehow got it into an invalid state where it's setting up a non-existent notification. Was there any other errors that happened before, is there any error in the browser console, etc?
Author
Owner

@louislam commented on GitHub (Nov 23, 2021):

Have you tried Chrome? Feel like a browser issue.

@louislam commented on GitHub (Nov 23, 2021): Have you tried Chrome? Feel like a browser issue.
Author
Owner

@darksky82 commented on GitHub (Nov 23, 2021):

Hi @louislam tried Chrome as well. Same effect.

@chakflying No console errors in both Chrome and Edge. Also checked firewall and adblocker. Not blocks there as well.

No other errors. Two monitors I setup are running smoothly. 2FA has been setup as well. Only issue is while trying to setup Telegram notification

Thanks.

@darksky82 commented on GitHub (Nov 23, 2021): Hi @louislam tried Chrome as well. Same effect. @chakflying No console errors in both Chrome and Edge. Also checked firewall and adblocker. Not blocks there as well. No other errors. Two monitors I setup are running smoothly. 2FA has been setup as well. Only issue is while trying to setup Telegram notification Thanks.
Author
Owner

@rezzorix commented on GitHub (Nov 23, 2021):

I have tried to re-produce this in Edge and on different platforms (docker on arm/raspian, x86/ubuntu20.04) and then have different Windows VMs with Edge and never got this error...

Did you make any settings in docker?
Can you post here what exactly your setup is?

Since you got only 2 monitors anyway it might be also an idea to delete the container and set it up again...

I suspect somewhere a user-error - so lets see how you started the container 😃

@rezzorix commented on GitHub (Nov 23, 2021): I have tried to re-produce this in Edge and on different platforms (docker on arm/raspian, x86/ubuntu20.04) and then have different Windows VMs with Edge and never got this error... Did you make any settings in docker? Can you post here what exactly your setup is? Since you got only 2 monitors anyway it might be also an idea to delete the container and set it up again... I suspect somewhere a user-error - so lets see how you started the container 😃
Author
Owner

@darksky82 commented on GitHub (Nov 23, 2021):

@rezzorix Thanks for spending time on this. This is my docker setup
`version: '3.3'

services:
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
volumes:
- uptimekuma:/app/data
ports:
- 3001:3001
volumes:
uptimekuma:
external: true`

I have also put this behind a nginx reverse proxy (subdomain) .

Thanks.

@darksky82 commented on GitHub (Nov 23, 2021): @rezzorix Thanks for spending time on this. This is my docker setup `version: '3.3' services: uptime-kuma: image: louislam/uptime-kuma container_name: uptime-kuma volumes: - uptimekuma:/app/data ports: - 3001:3001 volumes: uptimekuma: external: true` I have also put this behind a nginx reverse proxy (subdomain) . Thanks.
Author
Owner

@rezzorix commented on GitHub (Nov 24, 2021):

Ok, I am more and more sure that it is not caused by uptime....

Are you running this on a local machine in your network or on a VPS?
Are you monitoring services on the same machine as uptime?
Maybe firewall rules do not allow your uptime container to reach Telegram API?

@rezzorix commented on GitHub (Nov 24, 2021): Ok, I am more and more sure that it is not caused by uptime.... Are you running this on a local machine in your network or on a VPS? Are you monitoring services on the same machine as uptime? Maybe firewall rules do not allow your uptime container to reach Telegram API?
Author
Owner

@darksky82 commented on GitHub (Nov 24, 2021):

Thanks for your response.

Are you running this on a local machine in your network or on a VPS? => VPS
Are you monitoring services on the same machine as uptime? => No two other VPS. Via Ping.
Maybe firewall rules do not allow your uptime container to reach Telegram API? => Ah. all outgoing is allowed. Incoming yes, only default ports that are required are allowed. Can you help me with what port/IP/URL must be allowed for this to work? I will double check or explicitly allow it
Just curious.... if it was some server-side thing causing the error, why did you doubt on the browsers?

@darksky82 commented on GitHub (Nov 24, 2021): Thanks for your response. Are you running this on a local machine in your network or on a VPS? => VPS Are you monitoring services on the same machine as uptime? => No two other VPS. Via Ping. Maybe firewall rules do not allow your uptime container to reach Telegram API? => Ah. all outgoing is allowed. Incoming yes, only default ports that are required are allowed. Can you help me with what port/IP/URL must be allowed for this to work? I will double check or explicitly allow it Just curious.... if it was some server-side thing causing the error, why did you doubt on the browsers?
Author
Owner

@darksky82 commented on GitHub (Nov 24, 2021):

Thanks for your response.

Are you running this on a local machine in your network or on a VPS? => VPS
Are you monitoring services on the same machine as uptime? => No two other VPS. Via Ping.
Maybe firewall rules do not allow your uptime container to reach Telegram API? => Ah. all outgoing is allowed. Incoming yes, only default ports that are required are allowed. Can you help me with what port/IP/URL must be allowed for this to work? I will double check or explicitly allow it

Just curious.... if it was some server-side thing causing the error, why did you doubt on the browsers?

@darksky82 commented on GitHub (Nov 24, 2021): Thanks for your response. Are you running this on a local machine in your network or on a VPS? => VPS Are you monitoring services on the same machine as uptime? => No two other VPS. Via Ping. Maybe firewall rules do not allow your uptime container to reach Telegram API? => Ah. all outgoing is allowed. Incoming yes, only default ports that are required are allowed. Can you help me with what port/IP/URL must be allowed for this to work? I will double check or explicitly allow it Just curious.... if it was some server-side thing causing the error, why did you doubt on the browsers?
Author
Owner

@rezzorix commented on GitHub (Nov 24, 2021):

I think @louislam was hinting at a browser issue.

Which it still could be...
From my side I was just trying to see if it maybe is config error or..

But your setup seems ok since your monitors are working and also monitoring stuff outside of the network of your uptime instance.

Any browser plugins that might block stuff?

@rezzorix commented on GitHub (Nov 24, 2021): I think @louislam was hinting at a browser issue. Which it still could be... From my side I was just trying to see if it maybe is config error or.. But your setup seems ok since your monitors are working and also monitoring stuff outside of the network of your uptime instance. Any browser plugins that might block stuff?
Author
Owner

@louislam commented on GitHub (Nov 24, 2021):

I still don't have any idea.

Maybe you can try the demo:
https://demo.uptime.kuma.pet

@louislam commented on GitHub (Nov 24, 2021): I still don't have any idea. Maybe you can try the demo: https://demo.uptime.kuma.pet
Author
Owner

@darksky82 commented on GitHub (Nov 26, 2021):

Sorry for the delay on this. Well it was a server issue. Iptables was configured to restrict access to all ports to few specific IPs.
Removed this rule and it worked. However outgoing connections were allow all. Maybe I will dig into telegram api documentation and figure out why this is happening.

@darksky82 commented on GitHub (Nov 26, 2021): Sorry for the delay on this. Well it was a server issue. Iptables was configured to restrict access to all ports to few specific IPs. Removed this rule and it worked. However outgoing connections were allow all. Maybe I will dig into telegram api documentation and figure out why this is happening.
Author
Owner

@it-pappa commented on GitHub (Dec 18, 2021):

I am still having this issue.

Started today after i rebooted the host vm to patch vcenter etc.
I have tryed alot of things including remove the docker bridge and rebuild it since it looks like an error in docker network? Not sure, but no other container seems to have any issues other then this.

I can not add Telegram notification again, also tryed to redeploy the container.

@it-pappa commented on GitHub (Dec 18, 2021): I am still having this issue. Started today after i rebooted the host vm to patch vcenter etc. I have tryed alot of things including remove the docker bridge and rebuild it since it looks like an error in docker network? Not sure, but no other container seems to have any issues other then this. I can not add Telegram notification again, also tryed to redeploy the container.
Author
Owner

@louislam commented on GitHub (Dec 18, 2021):

https://demo.uptime.kuma.pet

Always try https://demo.uptime.kuma.pet. If it is ok, usually it is your network issue.

You should try to find out what blocked the connection to https://api.telegram.org/

@louislam commented on GitHub (Dec 18, 2021): > https://demo.uptime.kuma.pet Always try https://demo.uptime.kuma.pet. If it is ok, usually it is your network issue. You should try to find out what blocked the connection to https://api.telegram.org/
Author
Owner

@it-pappa commented on GitHub (Dec 18, 2021):

@louislam
I also think it is a networking issue. I installed vMotion after a bunch of VMs. I have my evening sorted out for me now. Redeploy this whooooole thing maby :/

@it-pappa commented on GitHub (Dec 18, 2021): @louislam I also think it is a networking issue. I installed vMotion after a bunch of VMs. I have my evening sorted out for me now. Redeploy this whooooole thing maby :/
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
starred/uptime-kuma#582
No description provided.