Error "Failed to derive xcontent"


(shashankg) #1

I am a newbie to ElasticSearch and tried this first one via curl
curl -XPUT "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


(ElasticSearch Users mailing list) #2

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b50cbe52-a8b8-4601-a4d2-bf7aa76cf2b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3