{"action":"created","issue":{"url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/2","repository_url":"https://api.github.com/repos/leecade/koa-webpack-middleware","labels_url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/2/comments","events_url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/2/events","html_url":"https://github.com/leecade/koa-webpack-middleware/issues/2","id":146180162,"number":2,"title":"Can't set headers after they are sent.","user":{"login":"maccelerated","id":8324981,"avatar_url":"https://avatars.githubusercontent.com/u/8324981?v=3","gravatar_id":"","url":"https://api.github.com/users/maccelerated","html_url":"https://github.com/maccelerated","followers_url":"https://api.github.com/users/maccelerated/followers","following_url":"https://api.github.com/users/maccelerated/following{/other_user}","gists_url":"https://api.github.com/users/maccelerated/gists{/gist_id}","starred_url":"https://api.github.com/users/maccelerated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maccelerated/subscriptions","organizations_url":"https://api.github.com/users/maccelerated/orgs","repos_url":"https://api.github.com/users/maccelerated/repos","events_url":"https://api.github.com/users/maccelerated/events{/privacy}","received_events_url":"https://api.github.com/users/maccelerated/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-06T03:57:18Z","updated_at":"2016-08-31T09:08:42Z","closed_at":null,"body":"Occurs when the page is requested before the webpack finishes compiling."},"comment":{"url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/comments/243704557","html_url":"https://github.com/leecade/koa-webpack-middleware/issues/2#issuecomment-243704557","issue_url":"https://api.github.com/repos/leecade/koa-webpack-middleware/issues/2","id":243704557,"user":{"login":"lostpebble","id":1508863,"avatar_url":"https://avatars.githubusercontent.com/u/1508863?v=3","gravatar_id":"","url":"https://api.github.com/users/lostpebble","html_url":"https://github.com/lostpebble","followers_url":"https://api.github.com/users/lostpebble/followers","following_url":"https://api.github.com/users/lostpebble/following{/other_user}","gists_url":"https://api.github.com/users/lostpebble/gists{/gist_id}","starred_url":"https://api.github.com/users/lostpebble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lostpebble/subscriptions","organizations_url":"https://api.github.com/users/lostpebble/orgs","repos_url":"https://api.github.com/users/lostpebble/repos","events_url":"https://api.github.com/users/lostpebble/events{/privacy}","received_events_url":"https://api.github.com/users/lostpebble/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T09:08:42Z","updated_at":"2016-08-31T09:08:42Z","body":"It appears Koa isn't waiting until webpack has finished building the bundle before sending a response, and then the middleware eventually finishes building and tries to send a response afterwards- which by then is too late and causes a server error.\r\n\r\nThe server has to be restarted and we manually have to wait until we see the bundle finished building. After many hours of development and working on the server code, it gets a bit frustrating. I tried forking this and working it out, but my experience with the internals of NodeJS and Koa request / response is limited and I couldn't fix it unfortunately.\r\n\r\nHas there been any progress on this issue?"}}
{"actor":{"display_login":"lostpebble"}}