# Transport Error and ConnectionError from python

**URL:** <https://discuss.elastic.co/t/transport-error-and-connectionerror-from-python/226139>\
**Category:** Elasticsearch\
**Created:** [April 1, 2020, 11:39pm UTC](https://discuss.elastic.co/t/transport-error-and-connectionerror-from-python/226139 "2020-04-01T23:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apremgeorge](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@apremgeorge](https://discuss.elastic.co/u/apremgeorge)\
**Post date:** [April 1, 2020, 11:39pm UTC](https://discuss.elastic.co/t/transport-error-and-connectionerror-from-python/226139/1 "2020-04-01T23:39:19Z")

</div>

Hi,  
I am exporting data from python to elasticsearch,  
using  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/7813d8ce175bdbeb12c96263b3fa54e3ad0d0093.png)  
data has 3 files, file sizes are 156mb, 2mb, 157mb  
created an index and mapping, all files are base64 format strings,  
my mapping settings are  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/1/4178f7e1d510a99412913daf7bd999039ffa08c7.png)  
and upload as  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/3/731ed9980cba099c08023a2d0c46c28546689275.png)  
Intially i got the

```auto
TransportError: TransportError(413, '')

```

For this i find changing the setting in elasticsearch.yml file as  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61c5ef310ccc1033fa6a92c899abbed1e23f8394.png)

After this, tried to upload data i get

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/8/28d1ba8c3000635074ea513cf06098395d6bb2d8.png)

and elastic terminates with

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/1/81003f95b67bd1360305a5597660d471f9df0b9a.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c7bebe4ef48cdd16aa1b3888926c6232e26b32a1.png)

May i know the fix for this please  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2020, 8:24am UTC](https://discuss.elastic.co/t/transport-error-and-connectionerror-from-python/226139/2 "2020-04-02T08:24:50Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<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:** [April 30, 2020, 8:24am UTC](https://discuss.elastic.co/t/transport-error-and-connectionerror-from-python/226139/3 "2020-04-30T08:24:54Z")

</div>

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