Importing geojson: this.props.onRenderError is not a function


#1

Hi,

I’m trying to import a geojson file:

I get the error:
Unable to connect to unknown host at URL `https://…’

Do you know what is my problem?
Thank you.

Yes, I’ve internet.
Metabase version v0.31.2 (Built on 2018-12-05)


#2

Hi @Panz90
Do you have a (software) firewall that blocks Metabase from making connections? Or is the URL password protected or anything like that?
Metabase needs to be able to resolve the domain and make a connection to get the GeoJSON file.
You could setup a tiny webserver locally, which serves the GeoJSON file to Metabase. Currently you cannot upload files to Metabase.


#3

Thank you flamber, I’ll try with a tiny server.

Firewall rules are ok for metabase connections.


#4

Hi,

now I’m facing with this error:

this.props.onRenderError is not a function

Url file:

https://dl.dropboxusercontent.com/s/qkqzsjbeumfp9y5/cities.json

This is a valid geojson for other programs.


#5

When I try the source on http://geojson.io then it fails with the error:

a number was found where a coordinate array should have been found: this needs to be nested more deeply


#6

Great site! http://geojson.io

I found the problem.

my file: [[7.57988,45.41888,7.57982,45.4189,7.57785,45.41874]]

expected: [[[7.57988,45.41888],[7.57982,45.4189],[7.57785,45.41874]]]

Thank you.