PHP On Couch (CouchDb Client)

Viewed 17

I am trying Continuous changes with a callback function but whenever i request it gives me "400 Bad Request". If I try fetching changes with out Continuous flag. "400 Bad requestYour browser sent an invalid request." vendor\php-on-couch\php-on-couch\src\Adapter\CouchHttpAdapterSocket.php:261

Bad request (GET http://xxxx:XXXXX@xxxxxxxxxxx:5984/db/_changes?feed=continuous {"feed":"continuous"})

P.S: The package is working fine for the rest of the stuff but the changes section is causing problems. Maybe I am calling it wrong. Please review my code.

$this->couchClient->feed('continuous',array($this,'index_doc'))->getChanges();
    // $this->couchClient->filter('_view&view=cdrs/listing_by_owner')->getChanges();
0 Answers
Related