GeoJSON URL failed to load

Dear all,
I have an issue adding a new map from following URL:

I've check this file with geojson.io and it is correct.

Logs give me:
[6538d102-9330-44a6-a571-3f3c19f314c5] 2021-12-08T10:35:29+01:00 DEBUG metabase.server.middleware.log GET /api/geojson 400 78,0 ms (0 DB calls)
"GeoJSON URL failed to load"

and here is the config:
{
"browser-info": {
"language": "fr",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9-Ubuntu-0ubuntu2.18.04",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9-Ubuntu-0ubuntu2.18.04",
"os.name": "Linux",
"os.version": "4.15.0-163-generic",
"user.language": "fr",
"user.timezone": "Europe/Paris"
},
"metabase-info": {
"databases": [
"mysql",
"h2"
],
"hosting-env": "unknown",
"application-database": "h2",
"application-database-details": {
"database": {
"name": "H2",
"version": "1.4.197 (2018-03-18)"
},
"jdbc-driver": {
"name": "H2 JDBC Driver",
"version": "1.4.197 (2018-03-18)"
}
},
"run-mode": "prod",
"version": {
"date": "2021-12-02",
"tag": "v0.41.3.1",
"branch": "release-x.41.x",
"hash": "20f9097"
},
"settings": {
"report-timezone": "Europe/Paris"
}
}
}
and help to troublehsoot this would be appreciated

(edit: I have no other custom maps)

Hi @GAuber
You need to link to the actual GeoJSON file, not a website:
https://raw.githubusercontent.com/gregoiredavid/france-geojson/5d34ee6d0140c29f785fdb047d9329f1aab58833/departements/76-seine-maritime/communes-76-seine-maritime.geojson

Hi @flamber! I've tried that too. Not working either. Same error.

@GAuber Okay, perhaps you have a firewall that is blocking, or problems with other networking.
It's working fine, when I test:

ok, will look in that direction !

@flamber, you rock ! That was it ! Thank you !!

Is there any way to use a local geojson file instead of getting this from Internet (something like some proposed: http://localhost/file.geojson) ? Our metabase server is for internal use only and is not normally connecter to Internet. Would love to have a different solution to display this geojson !

@GAuber Currently not without you adding the GeoJSON to the JAR file (it's just a ZIP-archive) in the same location as the two built-in maps (World and US) in the path /frontend_client/app/assets/geojson/, which can then be referenced with the path http://localhost/app/assets/geojson/<your-file>.geojson

https://github.com/metabase/metabase/issues/5339 - upvote by clicking :+1: on the first post