Skip to content
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

Dashboard console error when viewing as non-admin user with proxy backend configured #1753

Closed
brylie opened this issue Oct 11, 2016 · 2 comments
Labels
Milestone

Comments

@brylie
Copy link
Contributor

brylie commented Oct 11, 2016

When viewing the Dashboard as a non-admin user having one or more proxy backends, error(s) appear in the console.

Exception in delivering result of invoking 'getElasticSearchData': TypeError: Cannot read property 'hits' of undefined
    at http://localhost:3000/app/app.js?hash=6fce1c9d16bacee2f2a661b89a8f6dd2493be2ae:6149:20
    at MethodInvoker._callback (http://localhost:3000/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3:1105:22)
    at MethodInvoker._maybeInvokeCallback (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:3557:12)
    at MethodInvoker.receiveResult (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:3577:10)
    at Connection._livedata_result (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:4736:9)
    at onMessage (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:3385:12)
    at http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:2736:11
    at Array.forEach (native)
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?hash=27b3d669b418de8577518760446467e6ff429b1e:149:11)
    at REventTarget.self.socket.onmessage (http://localhost:3000/packages/ddp-client.js?hash=27502404fad7fc072e57e8b0b6719f40d92709c7:2735:11)
errorClass {error: "SearchPhaseExecutionException[Failed to execute ph…uery malformed, must start with start_object]; }]", reason: undefined, details: undefined, message: "[SearchPhaseExecutionException[Failed to execute p…ery malformed, must start with start_object]; }]]", errorType: "Meteor.Error"}

Screenshot

With the above error(s) in console, the Dashboard renders empty charts

screenshot

Steps to reproduce

  1. checkout develop
  2. make sure a Proxy has been added
  3. log in as a non-admin user (normal user)
  4. Add an API
  5. Add proxy settings to the API
  6. visit Dashboard
  7. Check console log

Related issues

@brylie
Copy link
Contributor Author

brylie commented Oct 11, 2016

Ping @frenchbread can you try to reproduce this issue with a non-admin user?

@frenchbread
Copy link
Contributor

frenchbread commented Oct 11, 2016

Yep, there was an error in publication, created hotfix #1754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants