-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch is trying to access loggedin user's "profile" property, which returns null #714
Comments
@jykae please provide some steps to reproduce. Is this when you deploy? What is the context around this error? |
@frenchbread is the We may need to make sure the user is logged in before the |
If i'm recalling correctly, Tested this issue locally by calling
Seems like when deploying, Agreed that error handling is needed there. What about checking if user isLoggedIn inside if (Meteor.user())
// continue getting charts data
else
// terminate |
Created a hotfix. Please review & test. This should fix the problem now. |
@frenchbread great work! |
Found a bug from the recent develop version, I am getting error from elasticSearch.js from line 22.
Exception while invoking method 'getChartData' TypeError: Cannot read property 'profile' of null
I20151215-14:02:54.605(2)? at [object Object].Meteor.methods.getChartData (server/methods/elasticSearch.js:22:1)
The text was updated successfully, but these errors were encountered: