{"action":"created","issue":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/714","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/714/comments","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/714/events","html_url":"https://github.com/apinf/api-umbrella-dashboard/issues/714","id":122260369,"number":714,"title":"Elasticsearch is trying to access loggedin user's \"profile\" property, which returns null","user":{"login":"jykae","id":293452,"avatar_url":"https://avatars.githubusercontent.com/u/293452?v=3","gravatar_id":"","url":"https://api.github.com/users/jykae","html_url":"https://github.com/jykae","followers_url":"https://api.github.com/users/jykae/followers","following_url":"https://api.github.com/users/jykae/following{/other_user}","gists_url":"https://api.github.com/users/jykae/gists{/gist_id}","starred_url":"https://api.github.com/users/jykae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jykae/subscriptions","organizations_url":"https://api.github.com/users/jykae/orgs","repos_url":"https://api.github.com/users/jykae/repos","events_url":"https://api.github.com/users/jykae/events{/privacy}","received_events_url":"https://api.github.com/users/jykae/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-15T12:17:11Z","updated_at":"2015-12-16T10:38:23Z","closed_at":null,"body":"Found a bug from the recent develop version, I am getting error from elasticSearch.js from line 22. \r\n\r\nException while invoking method 'getChartData' TypeError: Cannot read property 'profile' of null\r\nI20151215-14:02:54.605(2)?     at [object Object].Meteor.methods.getChartData (server/methods/elasticSearch.js:22:1)"},"comment":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments/165061462","html_url":"https://github.com/apinf/api-umbrella-dashboard/issues/714#issuecomment-165061462","issue_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/714","id":165061462,"user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T10:38:23Z","updated_at":"2015-12-16T10:38:23Z","body":"@frenchbread is the [`chartsLayout` template](https://github.com/apinf/api-umbrella-dashboard/blob/develop/client/views/dashboard/charts/charts.js#L67 used in any routes where anonymous users can access? We may need to make sure the user is logged in before the `getChartsData` method is envoked, otherwise there needs to be a try catch around the [failing code](https://github.com/apinf/api-umbrella-dashboard/blob/develop/server/methods/elasticSearch.js#L5)."}}