Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour with TelegramBot and info logging #72

Open
BlackFurios opened this issue Jun 16, 2022 · 0 comments
Open

Weird behaviour with TelegramBot and info logging #72

BlackFurios opened this issue Jun 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BlackFurios
Copy link

Current bug behaviour
I am using the SSLClient library on an Arduino MKR Zero with an ETH MKR Shield and the TelegramBot library. I had always the problem that the system freezed completely after a few minutes (maybe around 5-10min after start). Until then all communication with the telegram servers was fully functional with the small thing that every time a message was received/sent the following line was spammed by SSLClient:

(SSLClient) (SSL_ERROR) (available): Cannot operate on a closed SSL connection.

After reading a bit about this problem i tried to increase the buffer with using the EthernetLarge library (was recommened somewhere here). This sadly did not help. So i tried to change the SSLClient Logging from default to INFO (more logging messages) to get better insight on what is happening. Interestingly after changing this the freeze did not occur while i was reading the logging on my notebook. But after i removed the notebook connection and only a normal power supply (which is sufficient for the arduino) the error happened again.
So it is my believe that maybe the different logging behaviour in combination with actually sending it to a terminal seems to maybe clear buffer differently or something else might happen here. I am not sure and i hope maybe one of you can help/explain me how to fix this, so that the system does not freeze anymore.

Context:

  • Arduino MKR ZERO + MKR ETH Shield
  • Arduino Core Version [e.g. Adafruit SAMD core 1.5.3]
  • TelegramBot + Ethernet/EthernetLarge (should be newest for every library)
  • SSLClient Version: 1.6.11
@BlackFurios BlackFurios added the bug Something isn't working label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant