incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@gmail.com>
Subject Re: simple view => couchdb crashes
Date Tue, 30 Mar 2010 23:00:06 GMT

On Mar 30, 2010, at 3:56 PM, Julian Moritz wrote:

> hi,
> 
> I've just played around a bit with couchapp and a simple app. there are
> only two documents in my database, they are very simple structured.
> 
> I've added a view, but if I call it I get an "empty result" from the
> server. Looking at the console on which the couchdb is started shows me
> a large error trace.
> 
> The app is available here:
> 
> http://bitbucket.org/feuervogel/music/src/
> 
> Please look at views/simple/
> 
> the error is stored here:
> 
> http://bitbucket.org/feuervogel/music/issue/1/error-when-querying-view
> 
> Maybe someone could please help me? I'm more than only a bit frustrated.
> Tried to keep things simple but all I get is a crashed database.
> 

The problem is your reduce function. It needs to return something. Try removing the reduce.js
altogether.

Or replace it with something like:

function(keys, values, rereduce) {
  return sum(values);  
}


> Regards
> Julian


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message