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

Php Client views not working! (return "Protocol error")

4 replies [Last post]
  • Login or register to post comments
Thu, 07/05/2012 - 10:30
dunkspot
Offline
Joined: 05/29/2012
Groups: None

I tried using the Couchbase Php1.1.0.dp2 and it has been working fine until i tried accessing views using

<?php
$cb = new Couchbase("127.0.0.1:8091", "user", "pass", "default");
$result = $cb->view("design_doc", "view_name");
foreach($result["rows"] as $row) {
echo $row->key;
}

I receive the error "Warning: Couchbase::view(): Failed to execute view: Protocol error in ...." .

Top
  • Login or register to post comments
Thu, 07/05/2012 - 23:48
atm188
Offline
Joined: 06/06/2012
Groups: None

I asked that same question a couple of weeks ago. No one answered. Looks like the php community here is small.

Top
  • Login or register to post comments
Fri, 07/06/2012 - 04:08
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi dunkspot,

View support doesn't work in dp2 (apart from "_all_docs") and there is a ticket open for that:

http://www.couchbase.com/issues/browse/PCBC-76?page=com.atlassian.jira.p...

Also note that you need to run the latest libcouchbase version to get views up and running from the php driver.

Top
  • Login or register to post comments
Tue, 07/17/2012 - 04:58
WesleyE
Offline
Joined: 05/26/2012
Groups: None

Got the same problem, only even the _all_docs won't work for me on another bucket than default.

$this->_cb->view("_all_docs","");
returns
Warning: Couchbase::view(): Failed to execute view: Protocol error in [..]

I'm using the latest libcouchbase with the self-compiled version of php-ext from Github.

Is this a problem with non default buckets and authentication?

Top
  • Login or register to post comments
Fri, 07/20/2012 - 01:58
LittleBuddha87
Offline
Joined: 11/17/2011
Groups: None

_all_docs works with the newest version. BUT only _all_docs fetching data via. views with the sdk doesn't work.
If you click on the views url you get a diffrent port (8092) if you fetch the data via curl works!

I guess behind them works the normal couchdb api.

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