{"action":"closed","issue":{"url":"https://api.github.com/repos/ToddGreenstein/try-cb-nodejs/issues/9","repository_url":"https://api.github.com/repos/ToddGreenstein/try-cb-nodejs","labels_url":"https://api.github.com/repos/ToddGreenstein/try-cb-nodejs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ToddGreenstein/try-cb-nodejs/issues/9/comments","events_url":"https://api.github.com/repos/ToddGreenstein/try-cb-nodejs/issues/9/events","html_url":"https://github.com/ToddGreenstein/try-cb-nodejs/issues/9","id":94827878,"number":9,"title":"OAK <-> SFO crashes app","user":{"login":"lloydde","id":962387,"avatar_url":"https://avatars.githubusercontent.com/u/962387?v=3","gravatar_id":"","url":"https://api.github.com/users/lloydde","html_url":"https://github.com/lloydde","followers_url":"https://api.github.com/users/lloydde/followers","following_url":"https://api.github.com/users/lloydde/following{/other_user}","gists_url":"https://api.github.com/users/lloydde/gists{/gist_id}","starred_url":"https://api.github.com/users/lloydde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lloydde/subscriptions","organizations_url":"https://api.github.com/users/lloydde/orgs","repos_url":"https://api.github.com/users/lloydde/repos","events_url":"https://api.github.com/users/lloydde/events{/privacy}","received_events_url":"https://api.github.com/users/lloydde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-13T22:38:41Z","updated_at":"2016-05-11T04:31:06Z","closed_at":"2016-05-11T04:31:06Z","body":"OAK <-> SFO crashes app.\r\n\r\nSearch for flights from SFO to/from SFO and the app crashes.\r\n\r\n~~~\r\nQUERY: SELECT faa as fromAirport,geo FROM `travel-sample` WHERE airportname = 'Metropolitan Oakland Intl' UNION SELECT faa as toAirport,geo FROM `travel-sample` WHERE airportname = 'sfo'\r\n/usr/src/app/node_modules/haversine/haversine.js:21\r\n    var dLat = toRad(end.latitude - start.latitude)\r\n                                         ^\r\nTypeError: Cannot read property 'latitude' of undefined\r\n    at haversine (/usr/src/app/node_modules/haversine/haversine.js:21:42)\r\n    at /usr/src/app/model/flightPath.js:45:24\r\n    at /usr/src/app/model/db.js:209:9\r\n    at N1qlQueryResponse.<anonymous> (/usr/src/app/node_modules/couchbase/lib/bucket.js:694:7)\r\n    at N1qlQueryResponse.emit (events.js:110:17)\r\n    at /usr/src/app/node_modules/couchbase/lib/bucket.js:641:15\r\n~~~\r\n\r\nENV\r\n~~~\r\n$ git describe --long --dirty --abbrev=10 --tags --always\r\n8d06139abd-dirty\r\n* added git to dockerfile\r\n~~~"}}