Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-271

cannot load RestSharp HTTP plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • 1.2.6
    • library
    • None

    Description

      User gets a "The type 'Couchbase.HammockHttpClientFactory, Couchbase' cannot be resolved." when trying to use a configuration which specifies this backend.

      Most relevant text from the full post (at https://groups.google.com/forum/?fromgroups=#!topic/couchbase-8091/zSsDSr3Mv54) is below:
      I'm trying to test out the latest build of Couchbase (2.0.1) with the latest SDK and there are some differences with the configuration (or so it seems) and I can't get things to load or when I do I'm concerned that I haven't done it right.

      My configuration looked like this:

      <couchbase>

      <documentNameTransformer type="Couchbase.Configuration.DevelopmentModeNameTransformer, Couchbase" />

      <httpClientFactory type="Couchbase.HammockHttpClientFactory, Couchbase" />

      <servers bucket="dev-bucket" bucketPassword="">

      <add uri="http://localhost:8091/pools/default" />

      </servers>

      <socketPool minPoolSize="1" maxPoolSize="1" connectionTimeout="00:00:10" deadTimeout="00:00:10" />

      </couchbase>

      With that configuration it complains about the httpClientFactory line. I have the latest Couchbase.dll in the bin folder so unclear what is wrong. I dug into the documentation and noticed that there is also an option to use <httpClientFactory type="Couchbase.RestSharpHttpClientFactory, Couchbase" />. Both options result in the following error: The value of the property 'type' cannot be parsed. The error is: The type 'Couchbase.HammockHttpClientFactory, Couchbase' cannot be resolved. Please verify the spelling is correct or that the full type name is provided.

      Also of note, if I comment out all httpClientFactory elements my application loads without any errors. What am I giving up by not having one defined?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            saakshi.manocha Saakshi Manocha
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty