I am trying to create some buckets, and then create a GSI index on one of them.
I noticed that I always get an “authentication error” on “get bucket” operation.
And then I realized that I need to wait a while after creating the bucket so that it finishes “warming up”.
So if i throw a Thread.Sleep(some seconds) before trying to to the “get bucket”, it works.
Is there a better way to know when the bucket is ready to be accessed?