metabase / metabase

The simplest, fastest way to get business intelligence and analytics to everyone in your company :yum:
https://metabase.com
Other
38.96k stars 5.18k forks source link

BUG: Pin map background is grey #38048

Closed kait-stearns closed 10 months ago

kait-stearns commented 10 months ago

Describe the bug

The background for all of the pin maps I have created (spanning multiple dashboards) is now grey. Previously there was a map. Pins are still showing up.

Screen Shot 2024-01-23 at 11 30 22 AM

To Reproduce

  1. Pull some data with valid latitude and longitudes
  2. Create a map visualization
  3. Select pin map and specify lat/long fields
  4. See error

Expected behavior

Expect a world/area map to be in the background

Logs

Console logs:

analytics.js:24 Refused to load the script 'https://www.googletagmanager.com/gtag/js?id=G-29NY6M1W10&cx=c&_slc=1' because it violates the following Content Security Policy directive: "script-src 'self' https://maps.google.com https://accounts.google.com https://www.google-analytics.com   'sha256-9uFLu5CG8mWlvx0LK6lgendCxUX57TuWk3wkgZpBeWU=' 'sha256-ib2/2v5zC6gGM6Ety7iYgBUvpy/caRX9xV/pzzV7hf0=' 'sha256-isH538cVBUY8IMlGYGbWtBwr+cGqkc4mN6nLcA7lUjE='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Information about your Metabase installation

{
  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.21+9",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.21",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.21+9",
    "os.name": "Linux",
    "os.version": "5.10.205-195.804.amzn2.x86_64",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "mongo",
      "snowflake",
      "postgres"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "14.7"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.6.0"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-01-11",
      "tag": "v1.48.3",
      "hash": "80d8323"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

Severity

Annoying

Additional context

No response

paoliniluis commented 10 months ago

Can you open the browser dev tools and send us the logs in the network tab? also the console contents

kait-stearns commented 10 months ago

@paoliniluis Console contents: Refused to load the script 'https://www.googletagmanager.com/gtag/js?id=G-29NY6M1W10&cx=c&_slc=1' because it violates the following Content Security Policy directive: "script-src 'self' https://maps.google.com https://accounts.google.com https://www.google-analytics.com 'sha256-9uFLu5CG8mWlvx0LK6lgendCxUX57TuWk3wkgZpBeWU=' 'sha256-ib2/2v5zC6gGM6Ety7iYgBUvpy/caRX9xV/pzzV7hf0=' 'sha256-isH538cVBUY8IMlGYGbWtBwr+cGqkc4mN6nLcA7lUjE='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. Id @ analytics.js:24

screenshot of the Network tab (sorry if this isn't what you're asking for!) Screen Shot 2024-01-23 at 12 39 23 PM

paoliniluis commented 10 months ago

I think that the GeoJSON there doesn’t exist anymore. Look at the first http call, it returns something with a size of 0

kait-stearns commented 10 months ago

Got it. Is this something I can fix or does this have to be an internal Metabase fix?

paoliniluis commented 10 months ago

@kait-stearns check if the geojson still exists in the instance

kait-stearns commented 10 months ago

@paoliniluis I'm not sure where to check this, in the maps section of the admin screen it mentions "Metabase uses OpenStreetMaps by default", but I can't tell where exactly it pulls geojson from

Screen Shot 2024-01-29 at 10 05 29 AM
kait-stearns commented 10 months ago

Not sure what changed, but the map issue is now fixed!