couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@apache.org>
Subject Re: couchdb filters and function_clause error
Date Thu, 02 Sep 2010 17:41:52 GMT

On Sep 2, 2010, at 9:51 AM, <toni@filbert.org> wrote:

> 
> 
> i have a problem with couchdb filters. 
> 
> $curl
> 'http://HOST/mydb/_changes?filter=app/important' 
> 
> the response i get is
> the following error: 
> 
> {"error": "unknown_error", "reason":
> "function_clause"} 
> 

looks like it should work to me.

what version of couchdb are you on?

can you provide the log file section corresponding to the error?

Thanks,
Chris

> and this is my very simple test filter doc: 
> 
> {
> 
> "_id": "_design/app",
> "_rev": "4-51941e89602a03c3ccf3c62858b9051b",
> 
> "filters": {
> "important": "function(doc, req) { return false; }"
> }
> }
> 
> 
> what´s wrong with this filter? 
> 
> all other views i created and tried are
> working.


Mime
View raw message