Title: ValueError: charset must not be in content_type argument · Issue #17 · fluentpython/example-code · GitHub
Open Graph Title: ValueError: charset must not be in content_type argument · Issue #17 · fluentpython/example-code
X Title: ValueError: charset must not be in content_type argument · Issue #17 · fluentpython/example-code
Description: When running http server given by example-code/18-asyncio/charfinder/http_charfinder.py the error is thrown: Error handling request Traceback (most recent call last): File "/home/osboxes/.local/lib/python3.5/site-packages/aiohttp/web_pro...
Open Graph Description: When running http server given by example-code/18-asyncio/charfinder/http_charfinder.py the error is thrown: Error handling request Traceback (most recent call last): File "/home/osboxes/.local/lib...
X Description: When running http server given by example-code/18-asyncio/charfinder/http_charfinder.py the error is thrown: Error handling request Traceback (most recent call last): File "/home/osboxes/.loca...
Opengraph URL: https://github.com/fluentpython/example-code/issues/17
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError: charset must not be in content_type argument","articleBody":" When running http server given by **example-code/18-asyncio/charfinder/http_charfinder.py** the error is thrown:\r\n`Error handling request\r\nTraceback (most recent call last):\r\n File \"/home/osboxes/.local/lib/python3.5/site-packages/aiohttp/web_protocol.py\", line 416, in start\r\n resp = yield from self._request_handler(request)\r\n File \"/home/osboxes/.local/lib/python3.5/site-packages/aiohttp/web.py\", line 323, in _handle\r\n resp = yield from handler(request)\r\n File \"/home/osboxes/.local/lib/python3.5/site-packages/aiohttp/web_urldispatcher.py\", line 139, in handler_wrapper\r\n result = old_handler(*args, **kwargs)\r\n File \"http_charfinder.py\", line 43, in home\r\n return web.Response(content_type=CONTENT_TYPE, text=html)\r\n File \"/home/osboxes/.local/lib/python3.5/site-packages/aiohttp/web_response.py\", line 458, in __init__\r\n raise ValueError(\"charset must not be in content_type \"\r\nValueError: charset must not be in content_type argument\r\n`\r\n\r\nMy Env: Python 3.5, aiohttp 2.3.2\r\n\r\n Removing `charset=UTF-8` param from `CONTENT_TYPE` constant solves the issue.","author":{"url":"https://github.com/RomanPerekhrest","@type":"Person","name":"RomanPerekhrest"},"datePublished":"2017-11-27T15:13:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/17/example-code/issues/17"}
| 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:ad251d8d-22f2-9817-5bc6-d7fcb3b5e432 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD64:2ACEE1:155D6B7:1CE2BE7:6970103E |
| html-safe-nonce | c0d75c8ea0f56d4e62cbffe7029f2355bbd37afd89f01ad552b28487474605a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDY0OjJBQ0VFMToxNTVENkI3OjFDRTJCRTc6Njk3MDEwM0UiLCJ2aXNpdG9yX2lkIjoiNjk1MTgwMDk0NDI4Njc2NTExOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 35102534c1036194eaccab18bfb445c8c9fd29ed9d87b04ea0799830c149f4b6 |
| hovercard-subject-tag | issue:277052341 |
| 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/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbaecc91946ff6e51457d24f327b2763a2aaf0f6a75f85840e8c4331e4cc7ea6/fluentpython/example-code/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbaecc91946ff6e51457d24f327b2763a2aaf0f6a75f85840e8c4331e4cc7ea6/fluentpython/example-code/issues/17 |
| og:image:alt | When running http server given by example-code/18-asyncio/charfinder/http_charfinder.py the error is thrown: Error handling request Traceback (most recent call last): File "/home/osboxes/.local/lib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RomanPerekhrest |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| 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 | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width