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

Kibana 7.2 add visualization to new dashboard js error #39782

Closed
gadinolfi opened this issue Jun 27, 2019 · 6 comments
Closed

Kibana 7.2 add visualization to new dashboard js error #39782

gadinolfi opened this issue Jun 27, 2019 · 6 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@gadinolfi
Copy link

Kibana version:
7.2
Elasticsearch version:
7.2
Server OS version:
macOS 10.13.6
Browser version:
all
Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:
when I try to add new visualization to dashboard doesn't work
Steps to reproduce:

  1. select new dashboard (or modify old one)
  2. push ADD function

Expected behavior:

Screenshots (if relevant):

Errors in browser console (if relevant):
TypeError: "visTypes.byName[JSON.parse(...).type] is undefined"
getTooltipForSavedObject http://localhost:5601/bundles/commons.bundle.js:5
renderListing http://localhost:5601/bundles/commons.bundle.js:3
renderListing http://localhost:5601/bundles/commons.bundle.js:3
render http://localhost:5601/bundles/commons.bundle.js:3
Qg http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Og http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Tg http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
bi http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
ci http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Di http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Yh http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Xh http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
qf http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
enqueueSetState http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
setState http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:225
_callee$ http://localhost:5601/bundles/commons.bundle.js:3
tryCatch http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
invoke http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
method http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
asyncGeneratorStep http://localhost:5601/bundles/commons.bundle.js:3
_next http://localhost:5601/bundles/commons.bundle.js:3
run http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:92
notify http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:92
flush http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:250
vendors.bundle.dll.js:233:78217
Unhandled promise rejection TypeError: "visTypes.byName[JSON.parse(...).type] is undefined"
getTooltipForSavedObject http://localhost:5601/bundles/commons.bundle.js:5
renderListing http://localhost:5601/bundles/commons.bundle.js:3
renderListing http://localhost:5601/bundles/commons.bundle.js:3
render http://localhost:5601/bundles/commons.bundle.js:3
Qg http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Og http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Tg http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
bi http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
ci http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Di http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Yh http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
Xh http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
qf http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
enqueueSetState http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:233
setState http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:225
_callee$ http://localhost:5601/bundles/commons.bundle.js:3
tryCatch http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
invoke http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
method http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:119
asyncGeneratorStep http://localhost:5601/bundles/commons.bundle.js:3
_next http://localhost:5601/bundles/commons.bundle.js:3
run http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:92
notify http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:92
flush http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:250
vendors.bundle.dll.js:92:798104


Provide logs and/or server output (if relevant):

Any additional context:

@markov00 markov00 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed labels Jun 27, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@markov00
Copy link
Member

cc @flash1293 the error seems related to this PR: #31400
can you check this?

@flash1293 flash1293 self-assigned this Jun 27, 2019
@flash1293
Copy link
Contributor

@gadinolfi Thanks a lot for reporting this.

Two questions:

  • Did you upgrade your Kibana instance from an older version or is this a brand new setup?
  • Did you disable any app on your server?

@gadinolfi
Copy link
Author

the dashboard came from old one (7.1.1) the system is new istallation
yes I disabled all app

@flash1293
Copy link
Contributor

The issue here is that there are saved objects in your Kibana instance for which the plugin was disabled. When trying to list them in the add panel, the name can't be found and an error is thrown. I'm going to fix this in #39803

As a temporary workaround you can either re-enable the apps or go into saved object management ("Management" in the side bar, then "Saved Objects") and delete the objects which rely on disabled apps if that's possible in your case.

@timroes
Copy link
Contributor

timroes commented Jul 3, 2019

Fixed via #39803

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants