Uploaded image for project: 'Lucee Development'
  1. LDEV-931

Elasticsearch request - JsonParseException[Invalid UTF-8 middle byte 0xf6\n

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.1.23
    • Fix Version/s: 5.0.1.29
    • Environment:

      Windows 10, Elasticsearch 1.7.2

      Description

      Please install Elasticsearch 1.7.2 first.
      Change the IP adress in the testcase.
      You should get a "Bad request" error:

      {"error":"ElasticsearchParseException[failed to parse source for create index]; nested: JsonParseException[Invalid UTF-8 middle byte 0xf6\n at [Source: [B@5a31f88b; line: 1, column: 12]]; ","status":400}

      Wokarounds:

      • Save the testfile as UTF-8 file (whitout BOM)
      • Uncomment the line
        <cfset sPayload = createObject("java", "org.apache.http.entity.StringEntity").init(sPayload, "utf-8")>

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              HarryK Harry Klein
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: