# Error "Failed to derive xcontent"

**URL:** <https://discuss.elastic.co/t/error-failed-to-derive-xcontent/17833>\
**Category:** Elasticsearch\
**Created:** [May 30, 2014, 12:05pm UTC](https://discuss.elastic.co/t/error-failed-to-derive-xcontent/17833 "2014-05-30T12:05:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashankg](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@shashankg](https://discuss.elastic.co/u/shashankg)\
**Post date:** [May 30, 2014, 12:05pm UTC](https://discuss.elastic.co/t/error-failed-to-derive-xcontent/17833/1 "2014-05-30T12:05:26Z")

</div>

I am a newbie to ElasticSearch and tried this first one via curl  
curl -XPUT "[http://localhost:9200/movies/movie/1](http://localhost:9200/movies/movie/1)" -d'  
{  
"title": "The Godfather",  
"director": "Francis Ford Coppola",  
"year": 1972,  
"genres": ["Crime", "Drama"]  
}'  
But I am getting the following error  
{"error":"MapperParsingException[failed to parse]; nested: ElasticsearchParseException[Failed to derive xcontent from (offset=0, length=1): [39]]; ","status":400}curl: (3) [globbing] unmatched brace in column 1 url: (3) [globbing] bad range in column 72

Could you please tell me where I went wrong

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [May 30, 2014, 6:19pm UTC](https://discuss.elastic.co/t/error-failed-to-derive-xcontent/17833/2 "2014-05-30T18:19:02Z")

</div>

It seems to work for me. I'd try typing this character by character  
straight into the command line just to make sure nothing "invisible" is  
interfering with the text. This sometimes happens when I copy-paste from a  
different app into the shell command line.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b50cbe52-a8b8-4601-a4d2-bf7aa76cf2b9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b50cbe52-a8b8-4601-a4d2-bf7aa76cf2b9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:25am UTC](https://discuss.elastic.co/t/error-failed-to-derive-xcontent/17833/3 "2017-07-06T01:25:42Z")

</div>


