# Downloading Vector Data Kibana Error using Nginx

**URL:** <https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848>\
**Category:** Kibana\
**Created:** [June 21, 2019, 9:28am UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848 "2019-06-21T09:28:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samudra\_Kifli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samudra_kifli/32/48512_2.png) [@Samudra\_Kifli](https://discuss.elastic.co/u/Samudra_Kifli)\
**Post date:** [June 21, 2019, 9:28am UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/1 "2019-06-21T09:28:43Z")

</div>

The Error said, "Cannot download Indonesia States file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host."

I have checked my geojson web-server cors and the result is fine, the 'Access-Control-Allow-Origin' '\*' already configured and work properly.

```
`curl -H "Access-Control-Request-Method: GET" -H "Origin: http://10.60.185.217:5601" --head http://10.60.185.217:82/indonesia.geojson

```

HTTP/1.1 200 OK  
Server: nginx/1.10.3 (Ubuntu)  
Date: Fri, 21 Jun 2019 09:21:43 GMT  
Content-Type: application/octet-stream  
Content-Length: 299798  
Last-Modified: Fri, 21 Jun 2019 02:24:00 GMT  
Connection: keep-alive  
ETag: "5d0c3fc0-49316"  
Access-Control-Allow-Origin: kbn-version  
Access-Control-Allow-Credentials: true  
Access-Control-Allow-Headers: Content-Type,Accept  
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE  
Accept-Ranges: bytes`

And this is my kibana.yml settings:  
`# Custom Region Maps regionmap: layers: - name: "Indonesia States" url: "http://10.60.185.217:82/indonesia.geojson" attribution: "https://raw.githubusercontent.com/superpikar/indonesia-geo$ fields: - name: "state" description: "state"`

Is there any something that I missed?

Thank you for helping.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 21, 2019, 7:22pm UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/2 "2019-06-21T19:22:29Z")

</div>

I think your `Content-Type: application/octet-stream` response header should be `Content-Type: application/json`.

---

<div class="post-metadata">

**Author:** ![Samudra\_Kifli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samudra_kifli/32/48512_2.png) [@Samudra\_Kifli](https://discuss.elastic.co/u/Samudra_Kifli)\
**Post date:** [June 26, 2019, 6:43am UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/3 "2019-06-26T06:43:52Z")

</div>

I have changed the configuration and get the contet-type is application/json, unfortunately the error still appears.

Thank you for the response

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 26, 2019, 3:24pm UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/4 "2019-06-26T15:24:43Z")

</div>

Do you see any errors in your browser console?

Or any errors in your kibana logs?

Is your Kibana server HTTPS enabled? I'm not sure, but maybe the GeoJSON also needs to be available through HTTPS.

---

<div class="post-metadata">

**Author:** ![Samudra\_Kifli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samudra_kifli/32/48512_2.png) [@Samudra\_Kifli](https://discuss.elastic.co/u/Samudra_Kifli)\
**Post date:** [June 28, 2019, 8:01am UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/5 "2019-06-28T08:01:10Z")

</div>

There are no errors except the vector error.

I have a little research about this https, I think it would be not easy steps.  
However, thank you for your help.

Hopefully, the next kibana region map version could read the geojson from a direct directory.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [July 2, 2019, 3:40pm UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/6 "2019-07-02T15:40:14Z")

</div>

The new Maps App will allow you to join aggregation results to GeoJSON data stored in Elasticsearch. You would need to ingest your Indonesia States file into Elasticsearch and then add it as a Document layer. Then construct a terms join to your other index.

[https://www.elastic.co/guide/en/kibana/current/terms-join.html](https://www.elastic.co/guide/en/kibana/current/terms-join.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 30, 2019, 3:40pm UTC](https://discuss.elastic.co/t/downloading-vector-data-kibana-error-using-nginx/186848/7 "2019-07-30T15:40:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
