# Elasticsearch to get the content length

**URL:** <https://discuss.elastic.co/t/elasticsearch-to-get-the-content-length/247417>\
**Category:** Elasticsearch\
**Created:** [September 3, 2020, 3:27pm UTC](https://discuss.elastic.co/t/elasticsearch-to-get-the-content-length/247417 "2020-09-03T15:27:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvelynC](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@EvelynC](https://discuss.elastic.co/u/EvelynC)\
**Post date:** [September 3, 2020, 3:27pm UTC](https://discuss.elastic.co/t/elasticsearch-to-get-the-content-length/247417/1 "2020-09-03T15:27:05Z")

</div>

Hi all,  
I was getting back the error saying "content length is too long for configured buffer limit (104857600)" in production environment.  
But when I try to reproduce the issue, it is not reproducible in lower environment. Even though the entity that i want to get back should be larger than 100MB, it still works fine.  
Is there any way I can check the content length? I am using rest high level client, so i cannot use getEntity() function to check.  
Thank you!

---

<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:** [October 1, 2020, 3:27pm UTC](https://discuss.elastic.co/t/elasticsearch-to-get-the-content-length/247417/2 "2020-10-01T15:27:30Z")

</div>

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