incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad George <c...@mgproducts.com>
Subject Re: Correct db name but receiving 400 response
Date Thu, 04 Nov 2010 00:40:14 GMT
this looks suspect to me:
 $.couch.db($db).allDocs({ ... });

try this:
$db.allDocs( { ... });


On Wed, Nov 3, 2010 at 6:36 PM, Wordit Ltd <wordituk@googlemail.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message