【问题标题】:error 6 when uploading json in watson discovery service在 watson 发现服务中上传 json 时出现错误 6
【发布时间】:2016-12-15 09:52:57
【问题描述】:

在 watson 发现服务中上传 json 示例文档时,通过创建工具,我得到以下响应:

{
    "code": 400,
    "error": "6"
}

我尝试剥离我的整个 json,这样就没有奇怪的字符了。例如

[
  {
    “text”: "JDE Reset JDE password",
    "FunctionName": "ERP"
  }
]

我认为错误 6 是针对不受支持的字符,但现在不确定了..

【问题讨论】:

    标签: json ibm-cloud watson watson-discovery


    【解决方案1】:

    尝试一下:

    {
        "text": "JDE Reset JDE password",
        "FunctionName": "ERP"
      }
    

    如果不工作,测试:

     {
            "Content-Type: application/json"
            "text": "JDE Reset JDE password",
            "FunctionName": "ERP"
          }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-13
      • 1970-01-01
      • 2018-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-15
      • 1970-01-01
      相关资源
      最近更新 更多