Unable to fire update handler in couchbase
Hi,
I am able to do all CRUD operations on couchbase using the 8091 url, however I am not able to fire an update handler. ie I created a new updates function in my design document using the futon interface, and then tried firing it using the 8091 url, however it fails.
Is it not supported yet?
Thanks,
Murtaza
I am able to all this through the 8091 port -
1) Call a view
2) PUT (create) a document
3) PUT (update) an existing document
4) DELETE an document
The same way that I can call a view under _views, I would also like to call an update handler under _updates. However this returns an error.
I can certainly call it from 5984, but then how will I know which database to call it on in the bucket. It creates 16 DB's and how do I know to call the handler on which db.
In the case of the view I just call it on the bucket, and it takes care of pulling the data from the different db's, I would like to have the same functionality of calling a handler on the bucket.
Is that possible?
Thanks,
Murtaza
The _update handlers are not, unfortunately, available in Couchbase Server 2.0. We're looking to add that functionality as soon as we can though.
As Mike mentioned, the 8091 port may have some other, undocumented HTTP URIs, but we expect all interaction with the buckets, which represent a logical Couch database, to be through 5984.
I'm not sure I fully understand exactly what you are trying to do here, but you might want to try sending the request to 5984. 8091 is the cluster management port. If that doesn't work then we will look further into your question.