Hi,
I got 401 unauthorized on CouchBaseLite Sync, after i deleted my documents and then data bucket from admin portal of Couchbase Server.
How can i revert the changes. or else fix the 401 unauthorized issue.
Hi,
I got 401 unauthorized on CouchBaseLite Sync, after i deleted my documents and then data bucket from admin portal of Couchbase Server.
How can i revert the changes. or else fix the 401 unauthorized issue.
I assume your running Sync Gateway in front of your Couchbase Server?
Sync Gateway stores it’s own metadata documents in the Couchbase Server Bucket including user account information.
If you deleted or Flushed your server bucket then you will have lost the Sync Gateway metadata documents.
You will either need to restore the bucket and data from a backup, or you will need to create a new empty bucket and re-create the user accounts, either via the Sync Gateway ADMIN REST API or you could use self registration if your CBL App is using Facebook authentication.
Andy