I have a web project that I call a view with CouchbaseBucket::query function with PHP SDK as below:
$myCluster = new CouchbaseCluster('couchbase://127.0.0.1'); $myBucket = $myCluster->openBucket('devbucket'); $query = CouchbaseViewQuery::from('dev_span_view', 'spanView'); $res = $myBucket->query($query);
query() returns null, but when I refresh the webpage the
query() function will fill the $res variable with documents from the view. After a few times refreshing the webpage again
query() returns null.
I looked at the Log section in CouchBase admin panel, but nothing useful was found there.
How can I figure out what is the problem?
I’m on Ubuntu 14.04, Couchbase 3.0.1