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

CreateDataverseAsync fails with System.ArgumentOutOfRangeException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • 1

    Description

      Trying to create a dataverse with the Analyitcs index manager method CreateDataverseAsync results in an error being thrown:

      System.ArgumentOutOfRangeException
      Specified argument was out of the range of valid values. (Parameter 'value')
      at System.Net.Http.HttpClient.set_Timeout(TimeSpan value)
      at Couchbase.Core.IO.HTTP.HttpServiceBase.CreateHttpClient(Nullable`1 timeout) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/IO/HTTP/HttpServiceBase.cs:line 64
      at Couchbase.Analytics.AnalyticsClient.QueryAsync[T](String statement, AnalyticsOptions options) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Analytics/AnalyticsClient.cs:line 77
      at Couchbase.Management.Analytics.AnalyticsIndexManager.CreateDataverseAsync(String dataverseName, CreateAnalyticsDataverseOptions options) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Management/Analytics/AnalyticsIndexManager.cs:line 53
      at Couchbase.IntegrationTests.Management.AnalyticsIndexManagerTests.AnalyticsIndexes_CreateCouchaseLink_ExpectInvalidArgument() in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/tests/Couchbase.IntegrationTests.Management/Management/AnalyticsIndexManagerTests.cs:line 111
      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
      

      This can be recreated with the test AnalyticsIndexes_CreateCouchaseLink_ExpectInvalidArgument in AnalyticsIndexManagerTests, and occurs with 7.1, 7.0 and 6.6.

      Attachments

        For Gerrit Dashboard: NCBC-3190
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            jmorris Jeff Morris
            will.broadbelt Will Broadbelt
            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