es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法相关的知识,希望对你有一定的参考价值。

【现象】执行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

报错原因

标点符号用错,或者标点符号少写

【解决方法】

把中文,修改为英文,

 

以上是关于es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法的主要内容,如果未能解决你的问题,请参考以下文章

es报Unexpected character (‘ï‘ (code 239)): was expecting comma to separate Object entries解决方法

grafana仪表盘的数据报错unexpected character: ‘ufeff’”

VueJS程序启动运行时,遇到Unexpected tab character问题

webpack 打包压缩 ES6文件报错UglifyJs + Unexpected token punc (();

webpack 打包压缩 ES6文件报错UglifyJs + Unexpected token punc «(», expected punc «:»(示例代码

webpack 打包压缩 ES6文件报错UglifyJs + Unexpected token punc «(», expected punc «:»(示例代码