ScopeNotFoundException when trying to get Scope after creating it
Description
Summary: After creating scope with `CreateScopeAsync`, bucket.Scope(...) throws an exception when trying to get it.
Repro:
Create Scope called "MyScope" with CreateScopeAsync
Immediately call bucket.Scope("MyScope")
(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)
Summary: After creating scope with `CreateScopeAsync`, bucket.Scope(...) throws an exception when trying to get it.
Repro:
Create Scope called "MyScope" with CreateScopeAsync
Immediately call bucket.Scope("MyScope")
(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)