Description
If you try to open a password protected memcached bucket with a configuration containing the password (but only when you call OpenBucket(name) and not OpenBucket(name, password), the client will throw an exception as follows:
System.AggregateException : Could not bootstrap - check inner exceptions for details.
----> Couchbase.Configuration.ConfigException : is this a Memcached bucket?
If you look at the logs you'll find it's really a WebException with a response of unauthorized:
2015-02-17 10:17:12,583 [Runner thread] ERROR Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig - Bootstrapping failed from http://192.168.27.102:8091/pools: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownLoadConfig[T](Uri uri) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Configuration\Server\Providers\Streaming\HttpServerConfig.cs:line 115
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs(Uri server) in c:\jenkins\workspace-net2\couchbase-net-client\Src\Couchbase\Configuration\Server\Providers\Streaming\HttpServerConfig.cs:line 62
Attachments
Issue Links
- relates to
-
NCBC-818 If ClientConfiguration contains password, ClusterHelper must honor it
- Resolved