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: redirect.github.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:9c6184e2-c134-b300-3216-f855b3722081 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BAE:355E09:135EB60:198A149:696D520C |
| html-safe-nonce | 001f7eeacff2534f6727379899b749f1d5a9e79bf1c4c082663d7a359f6d6651 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkFFOjM1NUUwOToxMzVFQjYwOjE5OEExNDk6Njk2RDUyMEMiLCJ2aXNpdG9yX2lkIjoiMjI1MjYxNDAzMzg3OTE1OTMwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ff1df52e1f3475f30b5fbe5809e68b41d6a40768780a50cb96f5f758fefcb4b |
| 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 | 0944e430045f4fb5f7bd103e0660080acfe593174063212555773ca41c144a14 |
| 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 | 66b6e773801d28660016072069017cfcc851f54b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width