Telegram send request error

Forum Home Forums Communicating with Devices Telegram send request error

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15928
    kcks66
    Participant

    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.

    #15931
    Mikhail
    Moderator

    Hi,

    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.
    #15932
    Mikhail
    Moderator

    Note. Don’t publish your bot token. It’s not safe.

    #15942
    kcks66
    Participant

    Hi 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.

    https://ibb.co/S6TD8wV

    Pls advice and thank you.

    #15957
    Mikhail
    Moderator

    Hi,
    Do you still get the same error in Communicator?

    #15963
    kcks66
    Participant

    Hi Mikhail,

    Yes. same send request error from communicator.

    Today I changed new 4G modem router and different Telco SIM.

    I continue monitor the results.

    #15968
    Mikhail
    Moderator

    Also check your firewall. It may block the Communicator service.

    #15980
    kcks66
    Participant

    Hi 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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.