couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Correct db name but receiving 400 response
Date Wed, 03 Nov 2010 22:48:30 GMT
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
>

Couldn't say. I'm not too familiar with the jquery plugin. You might
try looking through the Futon sources to see how its used there.

Paul

Mime
View raw message