Is the Python aiohttp library on Windows supporting HTTPS?

When I make an HTTPS request using the aiohttp library with asyncio and Python 3.4 on Windows 7, the request is interrupted with NotImplementedError in the _make_ssl_transport function in base_events.py, as shown in traceback.

On Windows, I use ProactorEventLoop. I think you should use this to make asyncio work. I tried the same query in a Debian 7 VM with a compiled version of Python 3.4, and the same query works. I do not use ProactorEventLoop in Debian, just by default.

Any ideas or workarounds? Or if I refuse aiohttp HTTPS on Windows now? I can not use Linux for this project, it must be on Windows.

+6
source share
1 answer

As jfs and OP are observed,

  • ProactorEventLoop is not compatible with SSL and
  • The default loop supports SSL on Windows. The aiohttp extension should also work with https on Windows.
0
source

All Articles