title: TypeError: '_SessionRequestContextManager' object is not iterable
body: <p>From this <a href="https://gist.github.com/debugtalk/3d26581686b63c28227777569c02cf2c" rel="nofollow noreferrer">tutorial</a> for multiple asynchronous get requests I copied and ran the following code:</p>
  <pre><code>import asyncio  
  import aiohttp
  
  def fetch_page(url, idx):  
      url = 'https://yahoo.com'
      response = yield from aiohttp.request('GET', url)
  
      if response.status == 200:
          print(&quot;data fetched successfully for: %d&quot; % idx)
      else:
          print(&quot;data fetch failed for: %d&quot; % idx)
          print(response.content, response.status)
  
  def main():  
      url = 'https://yahoo.com'
      urls = [url] * 100
  
      coros = []
      for idx, url in enumerate(urls):
          coros.append(asyncio.Task(fetch_page(url, idx)))
  
      yield from asyncio.gather(*coros)
  
  if __name__ == '__main__':  
      loop = asyncio.get_event_loop()
      loop.run_until_complete(main())
  </code></pre>
  <p>However, I get the following errors:</p>
  <blockquote>
  <p>RuntimeWarning: coroutine 'ClientSession._request' was never awaited</p>
  </blockquote>
  <blockquote>
  <p>Unclosed client session TypeError: '_SessionRequestContextManager'</p>
  </blockquote>
  <blockquote>
  <p>TypeError: '_SessionRequestContextManager' object is not iterable</p>
  </blockquote>