-
-
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
certificate is not valid for IP #5110
Comments
Repro for python 3.6: import aiohttp
loop = asyncio.get_event_loop()
async def main():
async with aiohttp.ClientSession(loop=loop) as session:
r = await session.get('https://pypi.org/')
print(await r.text())
if __name__ == '__main__':
loop.run_until_complete(main()) |
In |
In the good case,
In the bad case,
|
Old resolve: Lines 27 to 40 in 1940503
New resolve: Lines 28 to 53 in cac3cd2
so it looks like this is a simple matter of variable shadowing. However, it's a very serious error! |
aio-libs/aiohttp#5110 means that https URLs don't work. aio-libs/aiohttp#5118 fixes the issue, and will be included in 3.7.1.
🐞 Describe the bug
When requesting with IPv6 enabled, I get this weird exception.
💡 To Reproduce
python3 -m venv venv
and. venv/bin/activate
pip install -U aiohttp
💡 Expected behavior
📋 Logs/tracebacks
📋 Your version of the Python
📋 Your version of the aiohttp/yarl/multidict distributions
📋 Additional context
I find this when I'm trying to reproduce another error.
The text was updated successfully, but these errors were encountered: