{"action":"closed","issue":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/585","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/585/comments","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/585/events","html_url":"https://github.com/apinf/api-umbrella-dashboard/issues/585","id":114867957,"number":585,"title":"Sign out from Accounts page shows error 'Data not found'","user":{"login":"saralavanip","id":13309358,"avatar_url":"https://avatars.githubusercontent.com/u/13309358?v=3","gravatar_id":"","url":"https://api.github.com/users/saralavanip","html_url":"https://github.com/saralavanip","followers_url":"https://api.github.com/users/saralavanip/followers","following_url":"https://api.github.com/users/saralavanip/following{/other_user}","gists_url":"https://api.github.com/users/saralavanip/gists{/gist_id}","starred_url":"https://api.github.com/users/saralavanip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saralavanip/subscriptions","organizations_url":"https://api.github.com/users/saralavanip/orgs","repos_url":"https://api.github.com/users/saralavanip/repos","events_url":"https://api.github.com/users/saralavanip/events{/privacy}","received_events_url":"https://api.github.com/users/saralavanip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones/16","html_url":"https://github.com/apinf/api-umbrella-dashboard/milestones/Sprint%2016","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones/16/labels","id":1397638,"number":16,"title":"Sprint 16","description":"Sprint 16: 9 - 20 November.","creator":{"login":"bajiat","id":11626388,"avatar_url":"https://avatars.githubusercontent.com/u/11626388?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiat","html_url":"https://github.com/bajiat","followers_url":"https://api.github.com/users/bajiat/followers","following_url":"https://api.github.com/users/bajiat/following{/other_user}","gists_url":"https://api.github.com/users/bajiat/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiat/subscriptions","organizations_url":"https://api.github.com/users/bajiat/orgs","repos_url":"https://api.github.com/users/bajiat/repos","events_url":"https://api.github.com/users/bajiat/events{/privacy}","received_events_url":"https://api.github.com/users/bajiat/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":8,"state":"open","created_at":"2015-11-06T13:21:01Z","updated_at":"2015-11-16T10:31:14Z","due_on":"2015-11-19T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-03T17:32:38Z","updated_at":"2015-11-16T10:31:14Z","closed_at":"2015-11-16T10:31:14Z","body":"# Steps to reproduce\r\n\r\n1. Visit https://apinf.io\r\n1. Login\r\n1. Go to Account section\r\n1. Sign out \r\n\r\n## Result\r\n- Successful sign out with error: 'Data not found'  \r\n\r\n## Screenshot\r\n\r\n![signin_goto_profile_signout_data_not_found](https://cloud.githubusercontent.com/assets/13309358/10915847/40af4c44-8261-11e5-80a2-3a20c52177f3.png)\r\n\r\n# Server console\r\nAdditionally, there is a traceback in the server console:\r\n\r\n```\r\nException while invoking method 'getChartData' TypeError: Cannot read property 'profile' of null\r\nat [object Object].Meteor.methods.getChartData (server/methods/elasticSearch.js:26:1)\r\n...\r\n```\r\n\r\nThis suggests the user is being redirected to the dashboard page, so check the Router.onBeforeAction declarations. Also, the `getChartData` function needs to be refactored to handle exceptions (try ... catch).\r\n\r\n# Related\r\nThere is a [related issue](https://github.com/apinf/api-umbrella-dashboard/issues/617) regarding exception handling.\r\n\r\n"}}