{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/1377","repository_url":"https://api.github.com/repos/KeepSafe/aiohttp","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/1377/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/1377/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/1377/events","html_url":"https://github.com/KeepSafe/aiohttp/issues/1377","id":187623911,"number":1377,"title":"Subapps don't work in debug mode","user":{"login":"imbolc","id":747996,"avatar_url":"https://avatars.githubusercontent.com/u/747996?v=3","gravatar_id":"","url":"https://api.github.com/users/imbolc","html_url":"https://github.com/imbolc","followers_url":"https://api.github.com/users/imbolc/followers","following_url":"https://api.github.com/users/imbolc/following{/other_user}","gists_url":"https://api.github.com/users/imbolc/gists{/gist_id}","starred_url":"https://api.github.com/users/imbolc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imbolc/subscriptions","organizations_url":"https://api.github.com/users/imbolc/orgs","repos_url":"https://api.github.com/users/imbolc/repos","events_url":"https://api.github.com/users/imbolc/events{/privacy}","received_events_url":"https://api.github.com/users/imbolc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-07T04:38:14Z","updated_at":"2016-11-08T15:51:02Z","closed_at":"2016-11-08T15:50:49Z","body":"## Expected behaviour\r\nIt expected to work:\r\n```\r\nfrom aiohttp import web\r\n\r\napp = web.Application(debug=True)\r\napp.router.add_subapp('/sub', web.Application())\r\nweb.run_app(app)\r\n```\r\n## Actual behaviour\r\nI got the exception:\r\n```\r\nTraceback (most recent call last):\r\n  File \"app.py\", line 5, in <module>\r\n    web.run_app(app)\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/web.py\", line 394, in run_app\r\n    loop=loop))\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/base_events.py\", line 387, in run_until_complete\r\n    return future.result()\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/futures.py\", line 274, in result\r\n    raise self._exception\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/asyncio/tasks.py\", line 239, in _step\r\n    result = coro.send(None)\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/web.py\", line 330, in startup\r\n    yield from self.on_startup.send(self)\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py\", line 47, in send\r\n    yield from self._pre.send(ordinal, self._name, *args, **kwargs)\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py\", line 59, in send\r\n    yield from self._send(ordinal, name, *args, **kwargs)\r\n  File \"/home/imbolc/.pyenv/versions/3.5.2/lib/python3.5/site-packages/aiohttp/signals.py\", line 14, in _send\r\n    res = receiver(*args, **kwargs)\r\nTypeError: handler() takes 1 positional argument but 3 were given\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/comments/259173932","html_url":"https://github.com/KeepSafe/aiohttp/issues/1377#issuecomment-259173932","issue_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/1377","id":259173932,"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-11-08T15:51:02Z","updated_at":"2016-11-08T15:51:02Z","body":"Thanks for bug report."}}
{"actor":{"display_login":"asvetlov"}}