I have an application making api requests via aiohttp
library.
session = aiohttp.ClientSession()
session.get(url, proxy=get_proxy_v2(), ssl=False)
I make around 10 requests/second. About once a hour I get the following error:
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host <REDACTED_HOST>:443 ssl:False [[SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:997)]
Initially, I didn't have ssl=False
but added to try and avoid this error, but it had no effect, about once a hour I get this error still. I could simply add a try catch to catch the error and retry, but would like to properly fix this error. I am a bit confused on how I am getting a SSL error even though I have ssl set to False. Not sure where to go from here.