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

NRE when bootstrapping - BucketConfigExtensions.ReplacePlaceholderWithBootstrapHost

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.2
    • library
    • None
    • 1
    • SDK14: Tracing/Otel

    Attachments

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

      Activity

        jmorris Jeff Morris added a comment -

        This appears to happen when a custom serializer is set on ClusterOptions; the problem appears to be that custom serializes should only effect user data (documents, query, etc) and not system data (cluster maps, error maps, etc):

        var jsonSettings = new JsonSerializerSettings()
          {
            NullValueHandling = NullValueHandling.Ignore,
            DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate,
            DateTimeZoneHandling = DateTimeZoneHandling.Utc,
            ContractResolver = new DefaultContractResolver
            {
              NamingStrategy = new DefaultNamingStrategy()
            }
          };
        clusterOptions.Serializer = new DefaultSerializer(jsonSettings, jsonSettings);
        

        jmorris Jeff Morris added a comment - This appears to happen when a custom serializer is set on ClusterOptions; the problem appears to be that custom serializes should only effect user data (documents, query, etc) and not system data (cluster maps, error maps, etc): var jsonSettings = new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate, DateTimeZoneHandling = DateTimeZoneHandling.Utc, ContractResolver = new DefaultContractResolver { NamingStrategy = new DefaultNamingStrategy() } }; clusterOptions.Serializer = new DefaultSerializer(jsonSettings, jsonSettings);

        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