# Geojson loading error

**URL:** <https://discuss.elastic.co/t/geojson-loading-error/235137>\
**Category:** Kibana\
**Created:** [June 1, 2020, 9:04am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137 "2020-06-01T09:04:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 1, 2020, 9:04am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/1 "2020-06-01T09:04:46Z")

</div>

Hello

I've tried several times to load a geojson file into a index through Kibana import system. It gives me the preview of the polygons, creates a index, but the it returns me an error

```auto
"Error performing fetch: Request Entity Too Large"

```

with a doc\_count of 0.

I've tried also with a single polygon and the problem was the same. So I guess it a geojson formatting issue. Could you help me with some kind of valid template that I can use?

Thank you

---

<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 1, 2020, 6:33pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/2 "2020-06-01T18:33:25Z")

</div>

Hi @Hugo_Pires. Can you share the geojson file that you are trying to upload?

Can you also tell us which web browser and version you are using?

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [June 1, 2020, 9:23pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/3 "2020-06-01T21:23:42Z")

</div>

Hello @Hugo_Pires. I'd also be interested in what file you're using. My offhand guess would be the file contains some very large features, maybe higher than 30MB or so. We don't see that too often but it does happen. If that's the case, you could try simplifying the file using a utility like [https://mapshaper.org/](https://mapshaper.org/).

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 2, 2020, 7:55am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/4 "2020-06-02T07:55:10Z")

</div>

Thank you. Is there any way to attach the file to this answer?

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 2, 2020, 11:06am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/5 "2020-06-02T11:06:04Z")

</div>

My browser is Chrome Version 83.0.4103.61 (Official Build) (64-bit)

---

<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 3, 2020, 9:05pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/6 "2020-06-03T21:05:03Z")

</div>

@Hugo_Pires You should be able to use this link to provide us the GeoJSON file. [https://upload.elastic.co/u/0b3fbb16-e893-42ef-93e6-aed9ab6b281c](https://upload.elastic.co/u/0b3fbb16-e893-42ef-93e6-aed9ab6b281c)

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 4, 2020, 8:06am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/7 "2020-06-04T08:06:21Z")

</div>

Hello

## Uploaded files for `0b3fbb16-e893-42ef-93e6-aed9ab6b281c`

I guess it's done

Thank you

---

<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 5, 2020, 3:22am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/8 "2020-06-05T03:22:25Z")

</div>

Thanks @Hugo_Pires. We've received the file. However, I did not get any errors when I used the GeoJSON Upload tool in Kibana v7.7.

Can you share which version of Kibana you are using? Also, can you share any screenshots showing the error?

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 5, 2020, 8:19am UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/9 "2020-06-05T08:19:05Z")

</div>

Hello

The version is 7.7.0.

### Before import

 ![before_import](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3ff6998f8e7b1d0dd857d2ed02286cc924095566.png)

### After import

 ![after_import](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a2700a7e73b613003fb4f6d429472c1edf7cbf2.png)

The index is created with doc\_count 0

Thanks

---

<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 5, 2020, 6:51pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/10 "2020-06-05T18:51:56Z")

</div>

Thanks @Hugo_Pires. I have a couple more questions.

1. Are you using a reverse proxy with Kibana?
2. Are you using Elastic Cloud? If not, how did you deploy Elasticsearch and Kibana?

---

<div class="post-metadata">

**Author:** ![Hugo\_Pires](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hugo_pires/32/68069_2.png) [@Hugo\_Pires](https://discuss.elastic.co/u/Hugo_Pires)\
**Post date:** [June 5, 2020, 7:04pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/11 "2020-06-05T19:04:04Z")

</div>

@nickpeihl

Are you using a reverse proxy with Kibana? **No**  
Are you using Elastic Cloud? **No**  
If not, how did you deploy Elasticsearch and Kibana? **Our instance**

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [June 5, 2020, 8:43pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/12 "2020-06-05T20:43:11Z")

</div>

I also didn't have any issues loading the file. It looks like the error you're getting is an Elasticsearch-specific error. A few thoughts:

- You could check in the Elasticsearch forum since it is an Elasticsearch error. I suspect they'll first give you the general advice for this error which is to set an increased value on `http.max_content_length`. The default is `100MB` so that doesn't seem like it would be the issue. With that said, you should certainly give it a shot first so you can say you've tried it. You can find more info [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)
- If it isn't too much trouble, you might try upgrading your Elasticsearch instance to 7.7.1 on the off chance it's a bug that was fixed.
- You can always fall back to [a more standard approach](https://www.elastic.co/blog/how-to-ingest-data-into-elasticsearch-service) to file upload

If neither of the first two options work out, you should consider [submitting a bug](https://github.com/elastic/kibana/issues/new?template=Bug_report.md). There's always the possibility someone else is seeing the same thing whether we can reproduce it or not.

Regards,  
Aaron

---

<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 3, 2020, 8:43pm UTC](https://discuss.elastic.co/t/geojson-loading-error/235137/13 "2020-07-03T20:43:21Z")

</div>

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