-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can't suppress all SSL verification errors #3292
Comments
|
Any way to prevent the stack trace from being displayed on stdout? |
Fixed in Python 3.8. No way to fix it in aiohttp itself. |
Can you give a example of creating a custom |
import ssl
from aiohttp import web
custom_context = ssl.create_default_context()
custom_context... # do things to it
web.run_app(..., ssl_context=custom_context, ...) |
Probably |
Yes that is what I was looking for. Thank you very much! Unfortunately it did not make |
That's because this error is not about cert verification. It's about the client trying to connect via plain http to https port.
So no, this will not help you to suppress the exception. And yet, if it's a bug in asyncio you could try replacing it with something else, like uvloop. |
Try different |
Long story short
Can't suppress all SSL verification errors.
Expected behaviour
No errors should be thrown when injecting into the ClientSession a TCPConnector initialized with
ssl=False
.Actual behaviour
Python dumps the exception stacktrace:
Steps to reproduce
Run this code:
Your environment
aiohttp 3.4.4
Ubuntu 16.04 (Python 3.5.5)
Windows 10 (Python 3.7)
The text was updated successfully, but these errors were encountered: