ConnectionError via python

Hello everyone! I am writing code for my bot. Basic idea is that every DELAY (which is now set to 30) seconds I send get request to with about <= 20 channel ids as an argument. However, once upon about 1-2 hours I get:
ConnectionError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded
It happens pretty randomly and I don’t know what to do (except putting this huge try -> except block, brrr)
Help please!
Followup: sometimes 3-4 channels disappear from stream list returned by api, and then they reappear again. (even though their owners didn’t turn their streams off) Any way to approach such problems?
Thanks to everyone in advance

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.