elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

[Serverless-observability-CDN-QA] Edit dashboard ->add panel->maps->unable to initialize map #178390

Closed bhavyarm closed 5 months ago

bhavyarm commented 6 months ago

Kibana version: Serverless observability project testing for CDN readiness

Describe the bug: Clock on edit dashboard -> add panel-> maps displays unable to initialize map. Maps app is dead.

Screenshot 2024-03-11 at 10 33 26 AM

Steps to reproduce:

  1. Create the observability project
  2. load sample data
  3. Click on any dashboard
  4. Click edit -> add panel->click maps
  5. Kibana displays unable to initialize maps
elasticmachine commented 6 months ago

Pinging @elastic/kibana-core (Team:Core)

bhavyarm commented 6 months ago

Maps app is dead here. Same error on all sample dashboards and maps app

Screenshot 2024-03-11 at 10 46 12 AM
marius-dr commented 6 months ago

Extra error here that shows up in the network tab: Security Error: Content at https://test.elastic.cloud/app/dashboards#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?_g=(filters:!()) may not load data from https://kibana.estccdn.com/552e8adcca05/bundles/plugin/maps/1.0.0/c86dfb7f678440f25f72f0dd4ba5dd0d.js.

jsanz commented 6 months ago

Tested this and got the same issues. I saw a request for a map asset being blocked so that's probably the originating issue

image

jsanz commented 6 months ago

Removing the basemap and adding a layer from EMS seems that should work but then nothing renders and on the dashboard I see an error on retrieving a Maps asset

image

jloleysens commented 6 months ago

Should be partly fixed by https://github.com/elastic/kibana/pull/178669

jloleysens commented 6 months ago

We will have to take an extra step to ensure PNGs can be downloaded

jsanz commented 6 months ago

Thanks @jloleysens, mind that tiles.maps.elastic.co besides JSON and PNG assets, also serves fonts in protobuff format

image

bhavyarm commented 6 months ago

I still see this error in browser console on maps. CC @jsanz opening a different bug.

Uncaught TypeError: Failed to construct 'Request': Failed to parse URL from /internal/maps/mvt/getTile/4/1/5.pbf?geometryFieldName=geoip.location&index=kibana_sample_data_ecommerce&hasLabels=false&buffer=0&requestBody=%28fields%3A%21%28%29%2Cquery%3A%28bool%3A%28filter%3A%21%28%28range%3A%28order_date%3A%28format%3Astrict_date_optional_time%2Cgte%3A%272024-03-13T04%3A00%3A00.000Z%27%2Clte%3A%272024-03-20T14%3A33%3A24.634Z%27%29%29%29%2C%28exists%3A%28field%3Ageoip.location%29%29%29%2Cmust%3A%21%28%29%2Cmust_not%3A%21%28%29%2Cshould%3A%21%28%29%29%29%2Cruntime_mappings%3A%28%29%2Csize%3A10000%29&token=96da2f9b-a6c8-444e-b69e-d48fef094f71&executionContextId=5dd88580-1906-11e9-919b-ffe5949a18d2
    at Nr (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:112894)
    at Zr (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:113933)
    at c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:295416
    at Ru.Ju [as loadVectorData] (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:295448)
    at Ru.loadTile (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:295916)
    at ch.loadTile (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:328608)
    at Hr.processTask (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:119661)
    at Hr.process (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:119199)
    at Yr.MessageChannel._channel.port2.onmessage (c86dfb7f678440f25f72f0dd4ba5dd0d.js:1:117760)
jloleysens commented 5 months ago

Hey @bhavyarm ! Would you mind testing this again on serverless QA and closing this issue if resolved?

jsanz commented 5 months ago

I could test a new QA project, and vector tiles were rendered as expected. Closing, thanks @jloleysens !!