Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2.4, 3.2.5, 3.2.6
-
None
-
None
-
1
Description
Problem
The EventingFunctionManager apis do not work at the moment and all attempts to call any function results in a TaskCancelledException.
Example
var eventingFunctionManager = cluster.EventingFunctions;
|
var results = await eventingFunctionManager.GetAllFunctionsAsync();//Exception thrown |
Error thrown:
System.Threading.Tasks.TaskCanceledException
|
The operation was canceled.
|
at System.Net.Http.ConnectHelper.ConnectAsync(Func`3 callback, DnsEndPoint endPoint, HttpRequestMessage requestMessage, CancellationToken cancellationToken)
|
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
|
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
|
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
|
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
|
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
|
at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
|
at Couchbase.Management.Eventing.EventingFunctionManager.GetAllFunctionsAsync(GetAllFunctionOptions options) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Management/Eventing/EventingFunctionManager.cs:line 151
|
at Couchbase.IntegrationTests.Management.Management.EventingFunctionManagerTests.Test_GetAllFunctionsAsync() in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/tests/Couchbase.IntegrationTests.Management/Management/EventingFunctionManagerTests.cs:line 46
|
at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_1.<<InvokeTestMethodAsync>b__1>d.MoveNext() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\TestInvoker.cs:line 264
|
--- End of stack trace from previous location ---
|
at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\ExecutionTimer.cs:line 48
|
at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in C:\Dev\xunit\xunit\src\xunit.core\Sdk\ExceptionAggregator.cs:line 90
|
Reproducing the issue
The EventingFunctionManagerTests tests are all failing with this bug (I was running against CBS 7.1.0-2021, but should likely occur with 6.6 and 7.0 too).
Versions
The bug was introduced from release 3.2.4. Prior to that the EventingFunctionManager works.