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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.5.9
    • 2.5.8
    • library
    • None
    • 1

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty