# Unable to send json documents to elasticsearch

**URL:** https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486
**Category:** Elasticsearch
**Created:** [May 19, 2017, 7:52pm UTC](https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486 "2017-05-19T19:52:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shyamalaponnada](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shyamalaponnada](https://discuss.elastic.co/u/shyamalaponnada)
#### Post date: [May 19, 2017, 7:52pm UTC](https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486/1 "2017-05-19T19:52:27Z")

</div>

Hi everyone,

I have able to start the ES and trying to send the json document to the server by using  
curl -XPUT '[http://localhost:9200/test/test/1](http://localhost:9200/test/test/1)' -d @test22.json  
but i am getting the error "curl: (52) Empty reply from server"

i have checked my log file it throwing an error of below  
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)  
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)  
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)  
atio.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)  
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)  
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:474)  
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:428)  
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)  
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)  
at java.lang.Thread.run(Thread.java:745)

Can any one suggest me what is the issue and how to fix it?

test22.json

PUT _template/dynatrace  
{  
"order": 0,  
"template": "dt__",  
"settings": {  
"number\_of\_shards": "6"  
},  
"mappings": {  
"useraction": {  
"dynamic\_templates": [  
{  
"allStrings": {  
"mapping": {  
"index": "not\_analyzed",  
"type": "string"  
},  
"match\_mapping\_type": "string",  
"match": "_"  
}  
}  
],  
"properties": {  
"data": {  
"properties": {  
"startTime": {  
"type": "date"  
},  
"endTime": {  
"type": "date"  
},  
"visitId": {  
"type": "long"  
},  
"tagId": {  
"type": "long"  
},  
"agentId": {  
"type": "long"  
},  
"clientDetails": {  
"properties" : {  
"gpsCoordinates" : {  
"type" : "geo\_point"  
}  
}  
},  
"resourceReport": {  
"properties" : {  
"cdn" : {  
"properties": {  
"domains": {  
"type": "nested"  
}  
}  
},  
"thirdParty" : {  
"properties": {  
"domains": {  
"type": "nested"  
}  
}  
}  
}  
}  
}  
}  
},  
"\_parent": {  
"type": "visit"  
}  
},  
"visit": {  
"dynamic\_templates": [  
{  
"allStrings": {  
"mapping": {  
"index": "not\_analyzed",  
"type": "string"  
},  
"match\_mapping\_type": "string",  
"match": "_"  
}  
}  
],  
"properties": {  
"data": {  
"properties": {  
"startTime": {  
"type": "date"  
},  
"endTime": {  
"type": "date"  
},  
"visitId": {  
"type": "long"  
},  
"clientDetails": {  
"properties" : {  
"gpsCoordinates" : {  
"type" : "geo\_point"  
}  
}  
}  
}  
}  
}  
},  
"clienterror": {  
"dynamic\_templates": [  
{  
"allStrings": {  
"mapping": {  
"index": "not\_analyzed",  
"type": "string"  
},  
"match\_mapping\_type": "string",  
"match": "_"  
}  
}  
],  
"properties": {  
"data": {  
"properties": {  
"startTime": {  
"type": "date"  
},  
"visitId": {  
"type": "long"  
},  
"tagId": {  
"type": "long"  
},  
"agentId": {  
"type": "long"  
},  
"clientDetails": {  
"properties" : {  
"gpsCoordinates" : {  
"type" : "geo\_point"  
}  
}  
}  
}  
}  
},  
"\_parent": {  
"type": "visit"  
}  
}  
},  
"aliases": {}  
}

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 20, 2017, 10:21pm UTC](https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486/2 "2017-05-20T22:21:45Z")

</div>

Is that the entire log entry?

---

<div class="post-metadata">

### Author: ![shyamalaponnada](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shyamalaponnada](https://discuss.elastic.co/u/shyamalaponnada)
#### Post date: [May 22, 2017, 3:29pm UTC](https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486/3 "2017-05-22T15:29:39Z")

</div>

Yes Warklom

---

<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: [June 19, 2017, 3:30pm UTC](https://discuss.elastic.co/t/unable-to-send-json-documents-to-elasticsearch/86486/4 "2017-06-19T15:30:27Z")

</div>

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