运行简单的_XPOST

我尝试在UBUNTU中运行以下curl命令:

curl -H "content-type: application/JSON" -XPOST http://localhost:9200/classes/class/1/ -d '> {"title":"algorithm","professor":"john"}'

但是它给了我这个错误:

  

{“错误”:{“ root_cause”:[{“ type”:“ mapper_parsing_exception”,“原因”:“失败   解析“}],” type“:” mapper_parsing_exception“,”原因“:”失败   parse“,” caused_by“:{” type“:” not_x_content_exception“,” reason“:” Compressor   检测只能在某些xcontent字节上调用或压缩   xcontent字节“}},”状态“:400}

xiaoyu8848 回答:运行简单的_XPOST

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3122888.html

大家都在问