error accessing views
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?
Can you please show how you have done that !
thanks
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.
Oh, also note that _all_docs is not supported by Couchbase Server.
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