# TooLongFrameException: HTTP content length exceeded 104857600 bytes

**URL:** <https://discuss.elastic.co/t/toolongframeexception-http-content-length-exceeded-104857600-bytes/10513>\
**Category:** Elasticsearch\
**Created:** [January 26, 2013, 4:14pm UTC](https://discuss.elastic.co/t/toolongframeexception-http-content-length-exceeded-104857600-bytes/10513 "2013-01-26T16:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [January 26, 2013, 4:14pm UTC](https://discuss.elastic.co/t/toolongframeexception-http-content-length-exceeded-104857600-bytes/10513/1 "2013-01-26T16:14:33Z")

</div>

Does ES has a limit on size of \_bulk POST? Looks like no more than 103M

curl -XPOST -o Z:\projects\demo\elasticsearch\demo\out\output.json  
--data-binary @Z:\projects\demo\elasticsearch\demo\out\es-mods.txt  
[http://localhost:9200/\_bulk](http://localhost:9200/_bulk)  
% Total % Received % Xferd Average Speed Time Time Time  
Current Upload Total Spent Left Speed  
97 103M 0 0 97 100M 0 14.9M 0:00:06 0:00:06 --:--:--  
1569k  
curl: (55) Send failure: Connection was aborted

org.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException:  
HTTP content length exceeded 104857600 bytes.  
at  
org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:167)  
at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:787)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)  
at  
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 26, 2013, 4:29pm UTC](https://discuss.elastic.co/t/toolongframeexception-http-content-length-exceeded-104857600-bytes/10513/2 "2013-01-26T16:29:54Z")

</div>

You must increase the http content length limit in  
http.max\_content\_length, default is 100MB

Jörg

Am 26.01.13 17:14, schrieb AlexR:

> Does ES has a limit on size of \_bulk POST? Looks like no more than 103M
> 
> curl -XPOST -o Z:\projects\demo\elasticsearch\demo\out\output.json  
> --data-binary @Z:\projects\demo\elasticsearch\demo\out\es-mods.txt  
> [http://localhost:9200/\_bulk](http://localhost:9200/_bulk)  
> % Total % Received % Xferd Average Speed Time Time Time  
> Current Upload Total Spent Left Speed  
> 97 103M 0 0 97 100M 0 14.9M 0:00:06 0:00:06  
> --:--:-- 1569k  
> curl: (55) Send failure: Connection was aborted
> 
> org.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException:  
> HTTP content length exceeded 104857600 bytes.  
> at  
> org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:167)  
> at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:787)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)  
> at  
> org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
> 
> --

--

---

<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 6, 2017, 2:54am UTC](https://discuss.elastic.co/t/toolongframeexception-http-content-length-exceeded-104857600-bytes/10513/3 "2017-07-06T02:54:29Z")

</div>


