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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: library
    • Labels:
    • Environment:
      .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

            • Assignee:
              btburnett3 Brant Burnett
              Reporter:
              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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.