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

Saving Visualization results in TypeError: Cannot read property of undefined #1647

Closed
kkirsche opened this issue Oct 10, 2014 · 1 comment · May be fixed by 82ndAirborneDiv/kibana#41 or enterstudio/kibana#81

Comments

@kkirsche
Copy link
Contributor

This might be related to Issue #1550 but while I was playing around with dummy data today I ran into a TypeError when saving a bar chart which was created from a saved search:

  • Y-Axis: Average Aggregation on a number (int) field
  • X-Axis: Date Histogram on a date field with Daily Interval
  • Visualization Name When Attempting to Save: "Chickv Bites Over Time in Flordia" (inside the quotes, not including)

Example of Panel Prior to Saving:
screen shot 2014-10-10 at 4 15 49 pm

Result:

TypeError: Cannot read property 'byName' of undefined
    at BaseAggParam.FieldAggParamFactory.FieldAggParam.deserialize (http://localhost:5601/components/agg_types/param_types/field.js:35:47)
    at http://localhost:5601/components/vis/_agg_config.js:52:28
    at Array.forEach (native)
    at AggConfigFactory.AggConfig.fillDefaults (http://localhost:5601/components/vis/_agg_config.js:41:27)
    at new AggConfig (http://localhost:5601/components/vis/_agg_config.js:26:12)
    at http://localhost:5601/components/vis/_agg_configs.js:18:18
    at Array.map (native)
    at Registry.AggConfigs (http://localhost:5601/components/vis/_agg_configs.js:16:42)
    at VisFactory.Vis.setState (http://localhost:5601/components/vis/vis.js:75:19)
    at new Vis (http://localhost:5601/components/vis/vis.js:24:12)

screen shot 2014-10-10 at 4 17 06 pm

URL for creating the Visualization if this helps:
http://localhost:5601/#/visualize/create?type=histogram&savedSearchId=Bites%20over%20time&_g=(time:(from:'2014-05-10T04:00:00.000Z',mode:absolute,to:'2014-09-13T20:07:35.910Z'))&_a=(query:(query_string:(query:'*')),vis:(aggs:!((params:(field:'Cum%20Tot%20IMP'),schema:metric,type:avg),(params:(extended_bounds:(),field:Date,interval:day,min_doc_count:1),schema:segment,type:date_histogram)),type:histogram))

URL on the error page if this helps:
http://localhost:5601/#/visualize/edit/Chickv%20Bites%20Over%20Time%20in%20Flordia?_g=(time:(from:'2014-05-10T04:00:00.000Z',mode:absolute,to:'2014-09-13T20:07:35.910Z'))

Let me know what else you would need or just point me in the direction where this may be happening and I'll see if I can fix it.

Also, it may be important to note that it is correctly saving this to the Objects panel in Settings (seen below) but clicking view displays the error again.
screen shot 2014-10-10 at 4 22 26 pm

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