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

error accessing views

4 replies [Last post]
  • Login or register to post comments
Wed, 06/13/2012 - 11:45
baldwinlouie
Offline
Joined: 03/06/2012
Groups: None

I'm testing out php-ext-couchbase dp2, and I'm running into an error trying to get a view. I followed the example on http://www.couchbase.com/develop/php/next and tried to make a simple connection

$cb = new Couchbase("127.0.0.1:8091", "user", "pass", "default");
$result = $cb->view("_all_docs", "");

The error I'm getting back is:
Warning: Couchbase::view(): Failed to execute view: Protocol error

This is after I've updated libcouchbase and the php-ext-couchbase extensions. This is on OS X.

Anyone encounter this before?

Top
  • Login or register to post comments
Wed, 06/13/2012 - 12:58
baldwinlouie
Offline
Joined: 03/06/2012
Groups: None

Found the problem. I put the api port 8092 behind Basic Authentication. After turning it off, views is working now.

As a side question, is it ok to change things in the /opt/couchbase/etc/couchdb/local.ini ? If I wanted to password protect the api port, then the couchbase views doesn't work.

Baldwin

Top
  • Login or register to post comments
Tue, 09/18/2012 - 17:41
janim007
Offline
Joined: 06/18/2012
Groups: None

Can you please show how you have done that !

thanks

Top
  • Login or register to post comments
Tue, 09/18/2012 - 17:43
ingenthr
Offline
Joined: 03/16/2010
Groups:

Ah, yes. There's a known issue where prior to Beta requests would be refused if basic authentication was on.

With all of the recent SDKs and the server build, except Python, we've solved that.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 17:44
ingenthr
Offline
Joined: 03/16/2010
Groups:

Oh, also note that _all_docs is not supported by Couchbase Server.

Top
  • Login or register to post comments
  • 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