{"action":"closed","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/918","repository_url":"https://api.github.com/repos/KeepSafe/aiohttp","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/918/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/918/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/918/events","html_url":"https://github.com/KeepSafe/aiohttp/issues/918","id":159355706,"number":918,"title":"Empty CancelledError while parsing request body (question)","user":{"login":"tumb1er","id":1587241,"avatar_url":"https://avatars.githubusercontent.com/u/1587241?v=3","gravatar_id":"","url":"https://api.github.com/users/tumb1er","html_url":"https://github.com/tumb1er","followers_url":"https://api.github.com/users/tumb1er/followers","following_url":"https://api.github.com/users/tumb1er/following{/other_user}","gists_url":"https://api.github.com/users/tumb1er/gists{/gist_id}","starred_url":"https://api.github.com/users/tumb1er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tumb1er/subscriptions","organizations_url":"https://api.github.com/users/tumb1er/orgs","repos_url":"https://api.github.com/users/tumb1er/repos","events_url":"https://api.github.com/users/tumb1er/events{/privacy}","received_events_url":"https://api.github.com/users/tumb1er/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-09T08:43:04Z","updated_at":"2016-06-10T10:02:37Z","closed_at":"2016-06-10T10:02:37Z","body":"I have periodically troubles with `CancelledError(args=())` while parsing multipart/form-data request.\r\npython3.4, aiohttp=0.21.0, under gunicorn==0.19.3\r\nAfter collecting some statistics, this view issues several errors:\r\n* ClientDisconnectedError (bad http connection) (80%)\r\n* errors with duplicate requests (browsers re-send POST requests if got no response from server in a minute) (10%)\r\n* this CancelledError, and a reason for it is unknown. (10%)\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/data/uploader-13.2.0-01/uploader/views.py\", line 207, in post\r\n    **kwargs)\r\n  File \"/data/uploader-13.2.0-01/uploader/views.py\", line 161, in _process_post_request\r\n    fields, files = yield from self.parser.parse_payload()\r\n  File \"/data/uploader-13.2.0-01/uploader/parser.py\", line 75, in parse_payload\r\n    buffer = yield from field.read_chunk()\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/aiohttp/multipart.py\", line 273, in read_chunk\r\n    chunk = yield from self._read_chunk_from_stream(size)\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/aiohttp/multipart.py\", line 313, in _read_chunk_from_stream\r\n    chunk = yield from self._content.read(size)\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/aiohttp/streams.py\", line 485, in wrapper\r\n    result = yield from func(self, *args, **kw)\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/aiohttp/streams.py\", line 540, in read\r\n    return (yield from super().read(n))\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/aiohttp/streams.py\", line 269, in read\r\n    yield from self._waiter\r\n  File \"/data/uploader/virtualenv/lib/python3.4/site-packages/asyncio/futures.py\", line 348, in __iter__\r\n    yield self  # This tells Task to wait for completion.\r\nconcurrent.futures._base.CancelledError\r\n```\r\nProcess is alive and serving after this error.\r\n\r\nIs it possible to diagnose and eliminate the reason of this error? Or may be somebody solved it already?\r\n\r\nThanks for any suggestions.\r\n"}}
{"actor":{"display_login":"tumb1er"}}