{"action":"created","issue":{"url":"https://api.github.com/repos/pelias/admin-lookup/issues/17","labels_url":"https://api.github.com/repos/pelias/admin-lookup/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/pelias/admin-lookup/issues/17/comments","events_url":"https://api.github.com/repos/pelias/admin-lookup/issues/17/events","html_url":"https://github.com/pelias/admin-lookup/issues/17","id":78474800,"number":17,"title":"TypeError: Cannot read property 'end' of undefined","user":{"login":"missinglink","id":738069,"avatar_url":"https://avatars.githubusercontent.com/u/738069?v=3","gravatar_id":"","url":"https://api.github.com/users/missinglink","html_url":"https://github.com/missinglink","followers_url":"https://api.github.com/users/missinglink/followers","following_url":"https://api.github.com/users/missinglink/following{/other_user}","gists_url":"https://api.github.com/users/missinglink/gists{/gist_id}","starred_url":"https://api.github.com/users/missinglink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missinglink/subscriptions","organizations_url":"https://api.github.com/users/missinglink/orgs","repos_url":"https://api.github.com/users/missinglink/repos","events_url":"https://api.github.com/users/missinglink/events{/privacy}","received_events_url":"https://api.github.com/users/missinglink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pelias/admin-lookup/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pelias/admin-lookup/labels/on-deck","name":"on-deck","color":"ededed"},{"url":"https://api.github.com/repos/pelias/admin-lookup/labels/priority","name":"priority","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"missinglink","id":738069,"avatar_url":"https://avatars.githubusercontent.com/u/738069?v=3","gravatar_id":"","url":"https://api.github.com/users/missinglink","html_url":"https://github.com/missinglink","followers_url":"https://api.github.com/users/missinglink/followers","following_url":"https://api.github.com/users/missinglink/following{/other_user}","gists_url":"https://api.github.com/users/missinglink/gists{/gist_id}","starred_url":"https://api.github.com/users/missinglink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missinglink/subscriptions","organizations_url":"https://api.github.com/users/missinglink/orgs","repos_url":"https://api.github.com/users/missinglink/repos","events_url":"https://api.github.com/users/missinglink/events{/privacy}","received_events_url":"https://api.github.com/users/missinglink/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-05-20T10:50:29Z","updated_at":"2015-08-28T11:42:51Z","closed_at":null,"body":"reported by @heffergm May 20th\r\n\r\n```bash\r\n/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/lib/master.js:298\r\n    lookup.end();\r\n          ^\r\nTypeError: Cannot read property 'end' of undefined\r\n    at DestroyableTransform.end [as _flush] (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/lib/master.js:298:11)\r\n    at DestroyableTransform.<anonymous> (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:135:12)\r\n    at DestroyableTransform.g (events.js:199:16)\r\n    at DestroyableTransform.emit (events.js:129:20)\r\n    at finishMaybe (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:371:12)\r\n    at endWritable (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:378:3)\r\n    at DestroyableTransform.Writable.end (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/pelias-admin-lookup/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:356:5)\r\n    at DestroyableTransform.onend (/mnt/pelias/pelias-osm/releases/20150520094242/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:523:10)\r\n    at DestroyableTransform.g (events.js:199:16)\r\n    at DestroyableTransform.emit (events.js:129:20)\r\n```"},"comment":{"url":"https://api.github.com/repos/pelias/admin-lookup/issues/comments/135746714","html_url":"https://github.com/pelias/admin-lookup/issues/17#issuecomment-135746714","issue_url":"https://api.github.com/repos/pelias/admin-lookup/issues/17","id":135746714,"user":{"login":"missinglink","id":738069,"avatar_url":"https://avatars.githubusercontent.com/u/738069?v=3","gravatar_id":"","url":"https://api.github.com/users/missinglink","html_url":"https://github.com/missinglink","followers_url":"https://api.github.com/users/missinglink/followers","following_url":"https://api.github.com/users/missinglink/following{/other_user}","gists_url":"https://api.github.com/users/missinglink/gists{/gist_id}","starred_url":"https://api.github.com/users/missinglink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missinglink/subscriptions","organizations_url":"https://api.github.com/users/missinglink/orgs","repos_url":"https://api.github.com/users/missinglink/repos","events_url":"https://api.github.com/users/missinglink/events{/privacy}","received_events_url":"https://api.github.com/users/missinglink/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T11:42:51Z","updated_at":"2015-08-28T11:42:51Z","body":"thanks for the info @thebabelfish, I'm pretty convinced it's not Ubuntu as I run that OS and only see the error very very occasionally.\r\n\r\nit's one of those nasty [heisenbugs](https://en.wikipedia.org/wiki/Heisenbug) that only happens intermittently, I think the real cause is a mix of race conditions and complex asynchronous code."}}