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

CouchbaseViewBase.GetEnumerator throws NotImplementedException

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Fix
    • Minor
    • backlog-1.0
    • 1.3.9
    • library
    • None

    Description

      From github:

      internal abstract class CouchbaseViewBase : IView

      needs to have line 211 be:
      IEnumerator IEnumerable.GetEnumerator()

      { return GetEnumerator(); }

      When Newtonsoft.Json tries to serialize the view it throws this exception:

      System.NotImplementedException was unhandled by user code
      HResult=-2147467263
      Message=The method or operation is not implemented.
      Source=Couchbase
      StackTrace:
      at Couchbase.CouchbaseViewBase1.System.Collections.IEnumerable.GetEnumerator() at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer) at BadgePrintingUnitClientService.Controllers.RegistrantController.Get(String email) in c:\projectsSLC\Applications\BadgePrintingUnit\BadgePrintingUnitClientService\Controllers\RegistrantController.cs:line 37 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c_DisplayClass10.<GetExecutor>b_9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken)
      InnerException:

      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