Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1651

SDK throws parse exception when geopoint field is read in response

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.8
    • Fix Version/s: 2.5.9
    • Component/s: library
    • Labels:
      None

      Description

      If a geopoint type field is defined in an index, the response will fail with: "Error reading string. Unexpected token: StartArray. Path 'fields.geo', line 1, position 413."

      The reason is because the client expects the fields to be an array of key/value strings; however, the value type for a geopoint Type is an array of latitude/longitude which are numeric values:

      "fields":{"geo":[9.15199995719641,41.38676998936262],"name":"Santateresa"}}

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jmorris Jeff Morris
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes