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

StreamingQueryClient fails on multiple queries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.4.0
    • None
    • library
    • None

    Description

      If you execute multiple queries with UseStreaming(true), subsequent queries fail.  This is because you cannot set HttpClient.Timeout after executing the first request.

      Exception:

      System.InvalidOperationException
      This instance has already started one or more requests. Properties can only be modified before sending the first request.
      at System.Net.Http.HttpClient.CheckDisposedOrStarted()
      at System.Net.Http.HttpClient.set_Timeout(TimeSpan value)
      at Couchbase.N1QL.StreamingQueryClient.<ExecuteQueryAsync>d__3`1.MoveNext() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\StreamingQueryClient.cs:line 43

      Attachments

        Activity

          People

            mike.goldsmith Michael Goldsmith
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty