incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wordit Ltd <wordi...@googlemail.com>
Subject Re: Correct db name but receiving 400 response
Date Wed, 03 Nov 2010 22:36:06 GMT
On Wed, Nov 3, 2010 at 11:00 PM, Paul Davis <paul.joseph.davis@gmail.com> wrote:
>
> You should be able to get logs from a URL like:
>
> http://127.0.0.1:5984/_log

Thanks Paul. This is the URL, which wrongly uses "[object Object]"
instead of the db name. Log message:

'GET' /%5Bobject%20Object%5D/_all_docs 400

This is my jquery code:

var $db = $.couch.db("fruit");

$.couch.db($db).allDocs({
   error:function(status,id,reason) {
       alert (status+" reason:"+reason);
    },

   success:function(resp) {
       alert (resp);
   }
});

Any ideas what the cause is?

Thanks,

Marcus

Mime
View raw message