Search code examples
jsonibm-cloudwatsonwatson-discovery

error 6 when uploading json in watson discovery service


when uploading a json sample document in watson discovery service, via the tool to create, i get this response:

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

I tried stripping my whole json, so thats there are no strange characters. e.g.

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

i thought error 6 was for unsupported characters, but not sure anymore..


Solution

  • Try just with:

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

    if dont work, test with:

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