# Posting JSON data to kibana generating validation error

**URL:** https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521
**Category:** Kibana
**Created:** [November 25, 2015, 7:32am UTC](https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521 "2015-11-25T07:32:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![henil\_shah](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@henil\_shah](https://discuss.elastic.co/u/henil_shah)
#### Post date: [November 25, 2015, 7:32am UTC](https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521/1 "2015-11-25T07:32:53Z")

</div>

{  
"error" : {  
"root\_cause" : [ {  
"type" : "action\_request\_validation\_exception",  
"reason" : "Validation Failed: 1: no requests added;"  
} ],  
"type" : "action\_request\_validation\_exception",  
"reason" : "Validation Failed: 1: no requests added;"  
},  
"status" : 400  
Getting this error when I use curl -XPOST '[http://localhost:9200/disease/\_bulk](http://localhost:9200/disease/_bulk)' --data-binary @Dyslexia.json  
want to add this file from machine to kibana. I am able to upload the file created in Windows but this file was made in Mac and getting this error.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [November 25, 2015, 8:02pm UTC](https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521/2 "2015-11-25T20:02:49Z")

</div>

And what's the (partial) contents of Dyslexia.json?

---

<div class="post-metadata">

### Author: ![henil\_shah](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@henil\_shah](https://discuss.elastic.co/u/henil_shah)
#### Post date: [November 25, 2015, 8:44pm UTC](https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521/3 "2015-11-25T20:44:01Z")

</div>

Well the contents are normal string and number but I solved it. When you save your file just change the Line ending to Linux/Unix from Mac OS. I changed and the error got solved. Thanks for your input though.

---

<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:08pm UTC](https://discuss.elastic.co/t/posting-json-data-to-kibana-generating-validation-error/35521/4 "2017-07-06T14:08:14Z")

</div>


