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

ScopeNotFoundException when trying to get Scope after creating it

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.2
    • library
    • Enterprise Edition 7.0.0 build 3739 (beta), Windows, latest .NET SDK from NuGet
    • 1

    Description

      Summary: After creating scope with `CreateScopeAsync`, bucket.Scope(...) throws an exception when trying to get it.

      Repro:

      1. Create Scope called "MyScope" with CreateScopeAsync
      2. Immediately call bucket.Scope("MyScope")
      3. (See attached source code and logs)

      Expected:

      Scope object ready to use. Or maybe there's a missing "WaitUntilScopeIsAvailable"?

      Actual:

      ScopeNotFoundException (see below).

       

      Exception:

      Unhandled exception. Couchbase.Management.Collections.ScopeNotFoundException: Scope with name MyScope not found
      at Couchbase.Core.BucketBase.Scope(String scopeName)
      at ForumQuestions.Program.Main(String[] args) in c:\zproj\ForumQuestions\ForumQuestions\Program.cs:line 40
      at ForumQuestions.Program.<Main>(String[] args)

      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

            jmorris Jeff Morris
            matthew.groves Matthew Groves
            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