Forum Home › Forums › Communicating with Devices › Telegram send request error
- This topic has 7 replies, 2 voices, and was last updated 1 week, 2 days ago by kcks66.
-
AuthorPosts
-
January 7, 2025 at 8:13 am #15928kcks66Participant
Hi Mikhail,
I have a weird situation. I ran Telegram function for an year without issues but today suddenly I got Telegram send request error:
2025-01-07 15:06:39 Session with the device [60] Telegram Sender
Send request:
https://api.telegram.org/bot6591513583:AAFigY1IG6Zwh-lML_SLVOx8TwW0kJmjqFs/getUpdates?offset=0&timeout=5&allowed_updates=message
Error executing request: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.I re-upload config and even restart PC didn’t fix the error. Lastly I reboot 4G modem router does fix the error:
2025-01-07 15:09:39 Session with the device [60] Telegram Sender
Send request:
https://api.telegram.org/bot6591513583:AAFigY1IG6Zwh-lML_SLVOx8TwW0kJmjqFs/getUpdates?offset=0&timeout=5&allowed_updates=message
Received response:
{“ok”:true,”result”:[]}However, after few minutes Telegram send request error happened again. I reboot 4G modem router and thus Telegram sender request ok back.
I repeated reboot 4G modem router exercise many times and the results are always same.
I need your advice on the error was came from my 4G modem router, or my Telco service or any of you can think of?
Thank you.
January 8, 2025 at 8:10 am #15931MikhailModeratorHi,
Send request: https://api.telegram.org/botXXX/getUpdates?offset=0&timeout=5&allowed_updates=message Error executing request: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.
timeout=5 means that the Telegram server should send a response in 5 seconds. But it didn’t. May be they have some issues on their side, or there are internet provider issues.
For testing, you could send the same request in a web browser.
- This reply was modified 2 weeks, 1 day ago by Mikhail.
January 8, 2025 at 8:11 am #15932MikhailModeratorNote. Don’t publish your bot token. It’s not safe.
January 8, 2025 at 9:39 am #15942kcks66ParticipantHi Mikhail,
During Telegram send request error:
Error executing request: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.
I tried to send the same request in web browser, it return OK.
Pls advice and thank you.
January 9, 2025 at 11:05 am #15957MikhailModeratorHi,
Do you still get the same error in Communicator?January 9, 2025 at 12:52 pm #15963kcks66ParticipantHi Mikhail,
Yes. same send request error from communicator.
Today I changed new 4G modem router and different Telco SIM.
I continue monitor the results.
January 10, 2025 at 9:51 am #15968MikhailModeratorAlso check your firewall. It may block the Communicator service.
January 14, 2025 at 5:56 am #15980kcks66ParticipantHi Mikhail,
After I changed new 4G modem router and another Telco SIM, the problem solved.
I think either previous 4G modem router or previous Telco got problem. -
AuthorPosts
- You must be logged in to reply to this topic.