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

Upgraded region maps display Error downloading vector data error #82539

Closed
bhavyarm opened this issue Nov 3, 2020 · 7 comments · Fixed by #82628
Closed

Upgraded region maps display Error downloading vector data error #82539

bhavyarm opened this issue Nov 3, 2020 · 7 comments · Fixed by #82628
Assignees
Labels
blocker bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Region Map regression

Comments

@bhavyarm
Copy link
Contributor

bhavyarm commented Nov 3, 2020

Kibana version: 6.8.13->7.10.0

Elasticsearch version: 6.8.13->7.10.0

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

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

Describe the bug: I performed a rolling upgrade from 6.8.13 to 7.10.0 and Kibana displays the following error on the dashboard with this region map.

The data is on logstash index pattern from here: https://www.elastic.co/guide/en/kibana/6.8/tutorial-load-dataset.html

Please note this doesn't happen on new region map which I created after enabling

xpack.maps.showMapVisualizationTypes: true

Error downloading vector data

Cannot download World Countries file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host.

Screenshots (if relevant):

Screen Shot 2020-11-03 at 5 58 08 PM

Screen Shot 2020-11-03 at 6 28 49 PM

This is the exported saved object of the dashboard with related objects -
export (16).ndjson.txt

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Feature:Region Map [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Nov 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@jsanz
Copy link
Member

jsanz commented Nov 4, 2020

I could reproduce. After upgrading from 6.8 to 7.10 and opening the region map, the new World Countries dataset is requested (the new TopoJSON dataset) and correctly retrieved, but for some reason it's not being processed

image

I could also see this error in the console

image

So it looks like the visualization is understanding the boundaries as a GeoJSON dataset instead of a TopoJSON.

@thomasneirynck
Copy link
Contributor

Does this also occur when upgrading from 7.9 to 7.10?

@bhavyarm
Copy link
Contributor Author

bhavyarm commented Nov 4, 2020

@thomasneirynck @LeeDr same bug while upgrading from 7.9.3 ->7.10.0

Screen Shot 2020-11-03 at 6 28 49 PM

@thomasneirynck thomasneirynck self-assigned this Nov 4, 2020
@thomasneirynck
Copy link
Contributor

thx @bhavyarm for confirming. I will investigate on Kibana end.

@nickpeihl
Copy link
Member

I think this is the offending line. https://github.com/elastic/kibana/blob/master/src/plugins/maps_legacy/public/map/service_settings.js#L234

If the choropleth_layer expects a geojson format we should not return the defaultFormat.

@thomasneirynck
Copy link
Contributor

@jsanz that error #82539 (comment) was probably introduced here: #78027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Region Map regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants