{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1338","repository_url":"https://api.github.com/repos/benoitc/gunicorn","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1338/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1338/events","html_url":"https://github.com/benoitc/gunicorn/issues/1338","id":173303522,"number":1338,"title":"Error serving aiohttp","user":{"login":"diogobaeder","id":207168,"avatar_url":"https://avatars.githubusercontent.com/u/207168?v=3","gravatar_id":"","url":"https://api.github.com/users/diogobaeder","html_url":"https://github.com/diogobaeder","followers_url":"https://api.github.com/users/diogobaeder/followers","following_url":"https://api.github.com/users/diogobaeder/following{/other_user}","gists_url":"https://api.github.com/users/diogobaeder/gists{/gist_id}","starred_url":"https://api.github.com/users/diogobaeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogobaeder/subscriptions","organizations_url":"https://api.github.com/users/diogobaeder/orgs","repos_url":"https://api.github.com/users/diogobaeder/repos","events_url":"https://api.github.com/users/diogobaeder/events{/privacy}","received_events_url":"https://api.github.com/users/diogobaeder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"assignees":[{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-25T20:35:54Z","updated_at":"2016-08-28T10:59:33Z","closed_at":null,"body":"Hi,\r\n\r\nWhen trying to serve an `aiohttp==0.22.5` application with `gunicorn==19.6.0` using the `gaiohttp` worker class (as documented) I can an error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/<redacted>/lib/python3.5/site-packages/aiohttp/server.py\", line 285, in start\r\n    yield from self.handle_request(message, payload)\r\n  File \"/<redacted>/lib/python3.5/site-packages/aiohttp/wsgi.py\", line 146, in handle_request\r\n    riter = self.wsgi(environ, response.start_response)\r\nTypeError: __call__() takes 1 positional argument but 3 were given\r\n```\r\n\r\nI noticed that `Application.__call__()` accepts no parameters, but `WSGIServerHttpProtocol.handle_request()` tries to call it as a WSGI app (with two arguments, environ and start_response). So I believe `Application.__call__()` could perhaps accept variable parameters and just ignore them, but I'm not sure this would impact anything else.\r\n\r\nHowever, when following the `aiohttp` documentation on deploying with Gunicorn, that is, using `aiohttp.worker.GunicornWebWorker`, then it works fine for me."},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/242968586","html_url":"https://github.com/benoitc/gunicorn/issues/1338#issuecomment-242968586","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1338","id":242968586,"user":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T10:59:33Z","updated_at":"2016-08-28T10:59:33Z","body":"@benoitc also I want to move `aiohttp.wsgi` into `gunicorn` (with keeping a copy in `aiohttp` for deprecation period).\r\nThere are no reasons to keep it in `aiohttp` itself -- `guinicorn` is the only user for the module.\r\nDo you have an objection?\r\n\r\nP.S.\r\nWSGI support is limited, you know -- async reading of POST body is not allowed.\r\n"}}
{"actor":{"display_login":"asvetlov"}}