【现象】执行es命令时,报如下错误:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "Failed to parse content to map"
}
],
"type" : "parse_exception",
"reason" : "Failed to parse content to map",
"caused_by" : {
"type" : "json_parse_exception",
"reason" : "Unexpected character ('ï' (code 239)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@23d5f580; line: 249, column: 37]"
}
},
"status" : 400
}
报错原因
标点符号用错,或者标点符号少写
【解决方法】
把中文,修改为英文,文章来源:https://www.toymoban.com/news/detail-778929.html
文章来源地址https://www.toymoban.com/news/detail-778929.html
到了这里,关于es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!