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

Exception using N1QL with UseStreaming(true) and AdHoc(false)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.1
    • library
    • .NET Core 1.1 running in Docker container
      Couchbase Server 4.6 Enterprise Edition on Windows 10

    Description

      Exception occurs with the following combination:

      • Calling IBucket.QueryAsync(IQueryRequest)
      • QueryRequest was set with UseStreaming(true)
      • QueryRequest was set with AdHoc(false)

      Exception:
      Value cannot be null.
      Parameter name: source
        at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
        at Couchbase.N1QL.QueryClient.<PrepareStatementIfNotAdHocAsync>d__17.MoveNext()
      — End of stack trace from previous location where exception was thrown —
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
        at Couchbase.N1QL.QueryClient.<QueryAsync>d__12`1.MoveNext()

      There is a similar error for synchronous queries:

      Value cannot be null.
      Parameter name: source
        at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
        at Couchbase.N1QL.QueryClient.PrepareStatementIfNotAdHoc(IQueryRequest originalRequest)
        at Couchbase.N1QL.QueryClient.Query[T](IQueryRequest queryRequest)

      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