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

Enumerating query results from SELECT RAW queries throws an exception

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • library
    • 1

    Description

      Example query:

      SELECT RAW name FROM `default` WHERE name IS VALUED LIMIT 1
      

      Throws this exception upon enumeration (if there is at least one result):

      System.InvalidOperationException : Reader is not positioned at the start of an object.
         at Couchbase.Core.IO.Serializers.DefaultJsonStreamReader.ReadObjectAsync[T](CancellationToken cancellationToken) in C:\Users\bburnett\Source\Repos\couchbase-net-client\src\Couchbase\Core\IO\Serializers\DefaultJsonStreamReader.cs:line 93
         at Couchbase.Core.IO.Serializers.DefaultJsonStreamReader.ReadArrayAsync[T](Func`3 readElement, CancellationToken cancellationToken) in C:\Users\bburnett\Source\Repos\couchbase-net-client\src\Couchbase\Core\IO\Serializers\DefaultJsonStreamReader.cs:line 114
         at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
         at Couchbase.Core.IO.Serializers.DefaultJsonStreamReader.ReadArrayAsync[T](Func`3 readElement, CancellationToken cancellationToken)
         at Couchbase.Query.StreamingQueryResult`1.GetAsyncEnumerator(CancellationToken cancellationToken) in C:\Users\bburnett\Source\Repos\couchbase-net-client\src\Couchbase\Query\StreamingQueryResult.cs:line 90
         at Couchbase.Query.StreamingQueryResult`1.GetAsyncEnumerator(CancellationToken cancellationToken) in C:\Users\bburnett\Source\Repos\couchbase-net-client\src\Couchbase\Query\StreamingQueryResult.cs:line 90
         at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
         at Couchbase.Query.StreamingQueryResult`1.GetAsyncEnumerator(CancellationToken cancellationToken)
      

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            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