You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by to...@filbert.org on 2010/09/02 18:51:58 UTC

couchdb filters and function_clause error


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"} 

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.

Re: couchdb filters and function_clause error

Posted by J Chris Anderson <jc...@apache.org>.
On Sep 2, 2010, at 9:51 AM, <to...@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.