You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My idea is implement 2 new exceptions aiohttp.client_exceptions.CertificateError and aiohttp.client_exceptions.SSLError which has bases ssl.CertificateError and ssl.SSLError as well aiohttp.client_exceptions.ClientOSError. When users catch aiohttp.client_exceptions.ClientOSError there is no way to understand is it ssl error, dns error or networking error or whatever else
There is a list of all exceptions and their bases in ssl module
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new
Long story short
My idea is implement 2 new exceptions
aiohttp.client_exceptions.CertificateError
andaiohttp.client_exceptions.SSLError
which has basesssl.CertificateError
andssl.SSLError
as wellaiohttp.client_exceptions.ClientOSError
. When users catchaiohttp.client_exceptions.ClientOSError
there is no way to understand is it ssl error, dns error or networking error or whatever elseThere is a list of all exceptions and their bases in ssl module
Expected behaviour
aiohttp.client_exceptions.CertificateError: Cannot connect to host expired.badssl.com:443 ssl:True [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)]
Actual behaviour
will raise
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host expired.badssl.com:443 ssl:True [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)]
Your environment
Python 3.6.2
Mac OS X 10.12.6
latest aiohttp master branch
The text was updated successfully, but these errors were encountered: