You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Toni Thomä <to...@filbert.org> on 2010/09/04 15:16:22 UTC

Problem with filters

i´m getting a "curl: (56) Received problem 2 in the chunky parser"  
when i try to connect to the changes api with filters, like this: "https://HOST/DB/_changes?filter=app/important 
".

HTTP/1.1 500 Internal Server Error
Server: CouchDB/1.0.0 (Erlang OTP/R13B04)
Date: Sat, 04 Sep 2010 09:57:19 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 44
Cache-Control: must-revalidate

{"error":"unknown_error","reason":"badarg"}
curl: (56) Received problem 2 in the chunky parser



my filter design doc looks like this:
{
   "_id": "_design/app",:
   "_rev": "5-7e5f4602b5f4baa1f515e66f70249ed1",
   "filters": {
     "important": "function (doc, req) {if (doc.created_at) {return  
true;} else {return false;}}"
   }
}

same happens when try to load this query in safari/firefox

all other views are working.

i´m on cloudant (couchdb 1.0.0)

regards
toni 

Re: Problem with filters

Posted by Adam Kocoloski <ad...@cloudant.com>.
Hi Toni, this was an issue with filtered _changes feeds across multi-node clusters in our BigCouch core at Cloudant.  It should be fixed now.  Regards,

Adam

On Sep 4, 2010, at 6:16 AM, Toni Thomä wrote:

> i´m getting a "curl: (56) Received problem 2 in the chunky parser" when i try to connect to the changes api with filters, like this: "https://HOST/DB/_changes?filter=app/important".
> 
> HTTP/1.1 500 Internal Server Error
> Server: CouchDB/1.0.0 (Erlang OTP/R13B04)
> Date: Sat, 04 Sep 2010 09:57:19 GMT
> Content-Type: text/plain;charset=utf-8
> Content-Length: 44
> Cache-Control: must-revalidate
> 
> {"error":"unknown_error","reason":"badarg"}
> curl: (56) Received problem 2 in the chunky parser
> 
> 
> 
> my filter design doc looks like this:
> {
>  "_id": "_design/app",:
>  "_rev": "5-7e5f4602b5f4baa1f515e66f70249ed1",
>  "filters": {
>    "important": "function (doc, req) {if (doc.created_at) {return true;} else {return false;}}"
>  }
> }
> 
> same happens when try to load this query in safari/firefox
> 
> all other views are working.
> 
> i´m on cloudant (couchdb 1.0.0)
> 
> regards
> toni