From user-return-12407-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Sep 02 17:44:57 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 92371 invoked from network); 2 Sep 2010 17:44:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 17:44:56 -0000 Received: (qmail 16382 invoked by uid 500); 2 Sep 2010 17:44:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16344 invoked by uid 500); 2 Sep 2010 17:44:54 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 16336 invoked by uid 99); 2 Sep 2010 17:44:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 17:44:54 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 17:44:47 +0000 Received: by gyb11 with SMTP id 11so177100gyb.11 for ; Thu, 02 Sep 2010 10:44:15 -0700 (PDT) Received: by 10.90.33.15 with SMTP id g15mr234766agg.97.1283449316111; Thu, 02 Sep 2010 10:41:56 -0700 (PDT) Received: from [10.0.1.2] (c-24-130-240-73.hsd1.ca.comcast.net [24.130.240.73]) by mx.google.com with ESMTPS id r3sm836012ibk.7.2010.09.02.10.41.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 10:41:55 -0700 (PDT) Sender: J Chris Anderson Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: couchdb filters and function_clause error From: J Chris Anderson In-Reply-To: <7821f634fa2c675201a8d817a379b43a@pop.kontent.com> Date: Thu, 2 Sep 2010 10:41:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7821f634fa2c675201a8d817a379b43a@pop.kontent.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1081) On Sep 2, 2010, at 9:51 AM, wrote: >=20 >=20 > i have a problem with couchdb filters.=20 >=20 > $curl > 'http://HOST/mydb/_changes?filter=3Dapp/important'=20 >=20 > the response i get is > the following error:=20 >=20 > {"error": "unknown_error", "reason": > "function_clause"}=20 >=20 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:=20 >=20 > { >=20 > "_id": "_design/app", > "_rev": "4-51941e89602a03c3ccf3c62858b9051b", >=20 > "filters": { > "important": "function(doc, req) { return false; }" > } > } >=20 >=20 > what=B4s wrong with this filter?=20 >=20 > all other views i created and tried are > working.