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 not rendering #1721

Closed
bajiat opened this issue Oct 10, 2016 · 8 comments
Closed

Dashboard not rendering #1721

bajiat opened this issue Oct 10, 2016 · 8 comments
Assignees
Labels
Milestone

Comments

@bajiat
Copy link
Contributor

bajiat commented Oct 10, 2016

Steps to reproduce

  1. Log into nightly as admin (Note: nightly has API Umbrella proxy settings and Elasticsearch settings)
  2. Go to dashboard

Expected result:
Dashboard shows data of all request to proxy (with the limitation of 50 000 requests)
Admin can view any API from Select API list

Actual result:
Dashboard is empty
Select API list is empty

Screenshots in comments.

@bajiat
Copy link
Contributor Author

bajiat commented Oct 10, 2016

empty dashboard

@bajiat
Copy link
Contributor Author

bajiat commented Oct 10, 2016

empty api list

@bajiat
Copy link
Contributor Author

bajiat commented Oct 10, 2016

apinf_and_rocket_chat_ 1

@brylie
Copy link
Contributor

brylie commented Oct 11, 2016

@frenchbread I just tested the dashboard again, this time as a normal user:

  • the user has one API
  • the API has Proxy settings

When viewing the Dashboard, I see the following console errors:

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"}

@brylie
Copy link
Contributor

brylie commented Oct 11, 2016

With the above errors, the charts render empty without warning the end user:

screenshot_20161011_122836

@frenchbread
Copy link
Contributor

Had the same error & fixed it with #1752

@brylie
Copy link
Contributor

brylie commented Oct 11, 2016

OK, because I am able to reproduce the error in the current develop branch.

@brylie
Copy link
Contributor

brylie commented Oct 11, 2016

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

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

3 participants