Details
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
For Gerrit Dashboard: NCBC-1342 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74355,2 | NCBC-1342: Fix streaming non-adhoc queries return exception results | master | couchbase-net-client | Status: MERGED | +2 | +1 |