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
    • Resolution: Fixed
    • Major
    • 3.0.2
    • 3.0.1
    • 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

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty