Title: 17-futures/countries/flags_asyncio.py fails to download flags · Issue #25 · fluentpython/example-code · GitHub
Open Graph Title: 17-futures/countries/flags_asyncio.py fails to download flags · Issue #25 · fluentpython/example-code
X Title: 17-futures/countries/flags_asyncio.py fails to download flags · Issue #25 · fluentpython/example-code
Description: When running with python 3.6.6, with aiohttp 3.3.2, the 'flags_asyncio.py' script outputs 20 pairs of lines similar to this: Unclosed client session client_session:
Open Graph Description: When running with python 3.6.6, with aiohttp 3.3.2, the 'flags_asyncio.py' script outputs 20 pairs of lines similar to this: Unclosed client session client_session: X Description: When running with python 3.6.6, with aiohttp 3.3.2, the 'flags_asyncio.py' script outputs 20 pairs of lines similar to this: Unclosed client session client_session: <aiohttp.client.Clien...
Opengraph URL: https://github.com/fluentpython/example-code/issues/25
X: @github
Domain: redirect.github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"17-futures/countries/flags_asyncio.py fails to download flags","articleBody":"When running with python 3.6.6, with aiohttp 3.3.2, the 'flags_asyncio.py' script outputs 20 pairs of lines similar to this:\r\n`Unclosed client session`\r\n`client_session: \u003caiohttp.client.ClientSession object at 0x10ecbfd68\u003e`\r\nfollowed by 20 tracebacks similar to this:\r\n`Task exception was never retrieved`\r\n`future: \u003cTask finished coro=\u003cdownload_one() done, defined at flags_asyncio.py:28\u003e` `exception=TypeError(\"'_SessionRequestContextManager' object is not iterable\",)\u003e`\r\n`Traceback (most recent call last):`\r\n` File \"flags_asyncio.py\", line 30, in download_one`\r\n` image = yield from get_flag(cc) # \u003c7\u003e`\r\n` File \"flags_asyncio.py\", line 23, in get_flag`\r\n` resp = yield from aiohttp.request('GET', url) # \u003c4\u003e`\r\n`TypeError: '_SessionRequestContextManager' object is not iterable`\r\n","author":{"url":"https://github.com/cdm-work","@type":"Person","name":"cdm-work"},"datePublished":"2018-09-13T21:01:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/25/example-code/issues/25"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:11ecc60f-f375-d281-73ec-02833f9bf8a7 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B142:200A16:19333A:23D2D2:696E3A5A html-safe-nonce 6db514d529bc783b0cd0dff65a1e0750351e06c72a0f145564b095e5c2b2037f visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQyOjIwMEExNjoxOTMzM0E6MjNEMkQyOjY5NkUzQTVBIiwidmlzaXRvcl9pZCI6IjQwMDYyNzE4NjI1NTgzMDg5NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac f8bc00ac29ec462a484ca921d9c19a641ed8125c50dc91e153e234ff8dfb7cf5 hovercard-subject-tag issue:360065047 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fluentpython/example-code/25/issue_layout twitter:image https://opengraph.githubassets.com/58ef74389a9d321538212a1d9a6bd5bf12ffb0a7f9caec96d18e7590d898828c/fluentpython/example-code/issues/25 twitter:card summary_large_image og:image https://opengraph.githubassets.com/58ef74389a9d321538212a1d9a6bd5bf12ffb0a7f9caec96d18e7590d898828c/fluentpython/example-code/issues/25 og:image:alt When running with python 3.6.6, with aiohttp 3.3.2, the 'flags_asyncio.py' script outputs 20 pairs of lines similar to this: Unclosed client session client_session: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username cdm-work hostname github.com expected-hostname github.com None b39958d54b39d52b9fc890ff25687d2383a83e003512d4480499b2dbd046839f turbo-cache-control no-preview go-import github.com/fluentpython/example-code git https://github.com/fluentpython/example-code.git octolytics-dimension-user_id 9216311 octolytics-dimension-user_login fluentpython octolytics-dimension-repository_id 25216588 octolytics-dimension-repository_nwo fluentpython/example-code octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 25216588 octolytics-dimension-repository_network_root_nwo fluentpython/example-code turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release fba10be4ea34590240b2f4a625fc807362c2d5b8 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.