.NET Couchbase client (2.0 preview) does not like machine names.
I am running Couchbase on a VM and set it up to run on a machine-name by following the instructions here:
I got that to work. in my web config I am pointing to the node like so:
<servers bucket="xxx" bucketPassword="xxx"> <add uri="http://[machinename]:8091/pools/default" /> </servers>
I grabbed the Couchbase 2.0 dev preview and when I try to add something I get this:
2011-11-30 22:46:35 [ERROR] 6 Membase.MembasePool - Failed to initialize the pool. - System.FormatException: An invalid IP address was specified. at System.Net.IPAddress.InternalParse(String ipString, Boolean tryParse) at System.Net.IPAddress.Parse(String ipString) at Membase.MembasePool.InitVBucket(ClusterConfig config, ISaslAuthenticationProvider auth) in C:\dev\couchbase-net-client\libs\EnyimMemcached\Membase\MembasePool.cs:line 206 at Membase.MembasePool.ReconfigurePool(ClusterConfig config) in C:\dev\couchbase-net-client\libs\EnyimMemcached\Membase\MembasePool.cs:line 139
I have used the enyim client (with the source) for previous Membase projects and corrected this in the source using a try parse for ip's so if node is configured to use host/machine name it doesn't blow up.
- Can you make the source for the Couchbase 2.0 Client available so I can fix this for my purposes?
- If you are not planing making the source available when can we expect a fix?