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

Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1
    • 2.0.0
    • library
    • None

    Description

      Couchbase .Net client throws Bootstrap error with inner exception: JSON serialization error at line 116 of HttpServerConfig.cs: return JsonConvert.DeserializeObject<T>(response) when its called to fetch the buckets at line 64 for Buckets = DownLoadConfig<List<BucketConfig>>(Pools.GetBucketUri(server)); and consequently throws bootstrap error.

      The actual error seem is with Newtonsoft json serializer version 6.0.1:
      "Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g.

      {"name":"value"}

      ) into type 'System.Boolean' because the type requires a JSON primitive value (e.g. string, number, boolean, null) to deserialize correctly"

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty