Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8251A99F4 for ; Wed, 1 Feb 2012 12:41:16 +0000 (UTC) Received: (qmail 80872 invoked by uid 500); 1 Feb 2012 12:41:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80797 invoked by uid 500); 1 Feb 2012 12:41:13 -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 80789 invoked by uid 99); 1 Feb 2012 12:41:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 12:41:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 12:41:07 +0000 Received: by vcbfo1 with SMTP id fo1so1185329vcb.11 for ; Wed, 01 Feb 2012 04:40:46 -0800 (PST) Received: by 10.52.69.49 with SMTP id b17mr12638585vdu.1.1328100046164; Wed, 01 Feb 2012 04:40:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.117.205 with HTTP; Wed, 1 Feb 2012 04:40:26 -0800 (PST) In-Reply-To: References: From: Jason Smith Date: Wed, 1 Feb 2012 19:40:26 +0700 Message-ID: Subject: Re: new ReferenceError(options is not defined) To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 1, 2012 at 10:38 AM, Mark Hahn wrote: >> =C2=A0do you have a validate_doc_update function with any mention of an > "options" label? > > No, I don't. =C2=A0I don't have anything named options in my db setup. > >> =C2=A0 I suspect the "options" part of your node code is a red herring. > > When I get a chance I'll test changing my variable name but I'm confident > that the name is just a coincidence as you said. =C2=A0I suspect it is so= me > internal couch var. > > I emptied my db and that didn't help. =C2=A0I went to the trouble to rebu= ild > couch from scratch but it made no difference. > > The problem happens in two requests in my code and for now I've managed t= o > disable them to get back to work. =C2=A0The weird thing is that I can't f= ind > anything in common with the two places. =C2=A0One is trying to add an att= achment > and the other is a _changes request. =C2=A0Oh well ... Interesting. Well, not to change the subject, but many people agree that the "request" package is the better way to access CouchDB (compared to the http module). In my opinion, nano, a thin layer on top of request, is a great balance of flexibility and convenience. Both are available via `npm install` and I've got a port of the `request` API to the browser for good measure. --=20 Iris Couch