Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 91170 invoked from network); 23 Feb 2011 12:44:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 12:44:54 -0000 Received: (qmail 13330 invoked by uid 500); 23 Feb 2011 12:44:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12882 invoked by uid 500); 23 Feb 2011 12:44:49 -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 12868 invoked by uid 99); 23 Feb 2011 12:44:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 12:44:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [109.169.49.54] (HELO zoe.mltserver-three.co.uk) (109.169.49.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 12:44:38 +0000 Received: from [81.145.135.174] (helo=[172.16.16.136]) by zoe.mltserver-three.co.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1PsE4m-0004Aa-FE for user@couchdb.apache.org; Wed, 23 Feb 2011 12:44:16 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: View error: "Document is missing attachment" From: Martin Hewitt In-Reply-To: <9049EE9C-487E-40D0-AFE1-AB1BC81336B3@thenoi.se> Date: Wed, 23 Feb 2011 12:44:16 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <7C344C6F-7E81-4F63-9D34-8297532A09EA@thenoi.se> References: <9049EE9C-487E-40D0-AFE1-AB1BC81336B3@thenoi.se> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1082) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zoe.mltserver-three.co.uk X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenoi.se X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Found my issue, couldn't see the wood for the trees! I was missing _view in the URL: http://127.0.0.1:5984/test-site_list/_design/blah/enabled vs=20 http://127.0.0.1:5984/test-site_list/_design/blah/_view/enabled Martin On 23 Feb 2011, at 12:36, Martin Hewitt wrote: > Hi all, >=20 > I'm having issues with the above error message on an empty database. >=20 > My View is: >=20 > { > "_id": "_design/blah", > "_rev": "2-0f45e5f3daa692c830fe40b609568356", > "views": { > "enabled": { > "map": "function(doc) { if (doc.enabled =3D=3D true) = emit(doc.id, doc.id) }" > } > } > } >=20 > When I load the view from: > http://127.0.0.1:5984/test-site_list/_design/blah/enabled >=20 > I get the error:=20 > {"error":"not_found","reason":"Document is missing attachment"} >=20 > Even if I add a sample document: > { > "_id": "24f48089f196be70266b54edc0004104", > "_rev": "1-94d2179287be1b04d301d6a63bace879", > "value": "one", > "enabled": true > } >=20 > I get the error. >=20 > My CouchDB version is: > 1> Apache CouchDB 1.0.2 (LogLevel=3Dinfo) is starting. > 1> Apache CouchDB has started. Time to relax. >=20 > Any help would be hugely appreciated. >=20 > Thanks, >=20 > Martin