Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

401 Error on GetView on .net SDK 1.2

No replies
  • Login or register to post comments
Wed, 01/16/2013 - 12:38
wundram
Offline
Joined: 10/10/2012
Groups: None

We are using the 1.2 of the .net SDK. We have two CouchbaseClient instances each pointing to a seperate bucket on the same Couchbase cluster. Both buckets have passwords set. Mostly it is working fine, except when we start pushing the service (around 50 ops/second, mostly Gets), calls to GetView on one bucket are being sent to the server with the credentials from the other bucket.

For example, when it is working correctly, a GetView request looks like this (from fiddler)

GET http://10.207.74.172:8092/perms/_design/dev_permlog/_view/pointers HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
Authorization: Basic cGVybXM6cm90cg==
Host: 10.207.74.172:8092

(the authorization string decodes to perms:rotr)

But, when we are having this issue, we see this instead,

GET http://10.207.74.232:8092/perms/_design/dev_permlog/_view/pointers HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
Authorization: Basic bG9nczpyb3Ry
Host: 10.207.74.232:8092

(the authorization string decodes to logs:rotr. "logs" is actually the name of the other bucket)

Any suggestions on how to resolve this would be helpful. I'm thinking that this might be a race condition in the .net SDK.

Top
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker