witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.13k stars 312 forks source link

Echo bot ESP8266 - every second request seems to be falling #249

Open witnessmenow opened 3 years ago

witnessmenow commented 3 years ago

Every second request seems to be receiving an empty response:

(I've revoked this token)

sending: bot245123272:AAEOrezpTXZ4Bw52OBwWOLDNBHpRMActep0/getUpdates?offset=1&limit=1

{"ok":true,"result":[]}

incoming message length 23
Creating DynamicJsonBuffer
GetUpdates parsed jsonObj: {"ok":true,"result":[]}
no new messages
Closing client
time took (ms): 1608
GET Update Messages
[BOT]Connecting to server
sending: bot245123272:AAEOrezpTXZ4Bw52OBwWOLDNBHpRMActep0/getUpdates?offset=1&limit=1
Received empty string in response!
Closing client
time took (ms): 3021
GET Update Messages
[BOT]Connecting to server
sending: bot245123272:AAEOrezpTXZ4Bw52OBwWOLDNBHpRMActep0/getUpdates?offset=1&limit=1

{"ok":true,"result":[]}

incoming message length 23
Creating DynamicJsonBuffer
GetUpdates parsed jsonObj: {"ok":true,"result":[]}
no new messages
Closing client
time took (ms): 1541
GET Update Messages
[BOT]Connecting to server
sending: bot245123272:AAEOrezpTXZ4Bw52OBwWOLDNBHpRMActep0/getUpdates?offset=1&limit=1
Received empty string in response!
Closing client
time took (ms): 2711
GET Update Messages
solcer commented 3 years ago

I am looking at the debug output of the code. The output is at below. sendGetToTelegram function does not return with json string.

Btw i am using 1.1.0 version.

[BOT]Connecting to server .... connected to server

<!DOCTYPE html>

getUpdates