Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 94420 invoked from network); 28 May 2010 00:15:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 May 2010 00:15:05 -0000 Received: (qmail 57810 invoked by uid 500); 28 May 2010 00:15:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 57759 invoked by uid 500); 28 May 2010 00:15:03 -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 57751 invoked by uid 99); 28 May 2010 00:15:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 00:15:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Steven.Prentice@nextgen.net designates 203.18.147.131 as permitted sender) Received: from [203.18.147.131] (HELO smtp12.NextGen.Net) (203.18.147.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 00:14:56 +0000 Received: from locutus.nextgen.net ([203.18.147.35]) by smtp12.NextGen.Net with ESMTP id 2010052810143309-236506 ; Fri, 28 May 2010 10:14:33 +1000 To: user@couchdb.apache.org MIME-Version: 1.0 Subject: ERROR when querying view in design document X-KeepSent: FFC4C4BE:6F239FE1-CA257731:000084FB; type=4; flags=0; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 Message-ID: From: Steven.Prentice@nextgen.net Date: Fri, 28 May 2010 10:14:32 +1000 X-MIMETrack: Serialize by Router on Locutus/NextGen Systems at 28/05/2010 10:14:33 AM, Serialize complete at 28/05/2010 10:14:33 AM, Itemize by SMTP Server on SMTP12/NextGenEXT at 28/05/2010 10:14:33, Serialize by Router on SMTP12/NextGenEXT at 28/05/2010 10:14:55, Serialize complete at 28/05/2010 10:14:55 Content-Type: multipart/alternative; boundary="=_alternative 000154BDCA257731_=" --=_alternative 000154BDCA257731_= Content-Type: text/plain; charset="US-ASCII" Hi, I am very very new to couchDB and am currently following a tutorial on design documents in which I have completed the following steps using my ubuntu 9.04 terminal with couchDB 0.8.0 incubating: 1. Create a .json file with the following code: { "_id" : "_design/example", "views" : { "foo" : { "map" : "function(doc){ emit(doc._id, doc._rev)}" } } } 2. Use curl to PUT the file to CouchDB (creating a database also) curl -X PUT http://127.0.0.1:5984/basic curl -X PUT http://127.0.0.1:5984/basic/_design/example -d @mydesign.json ....this resulted in a success message: {"ok":true,"id":"_design/example","rev":... 3. add some empty documents to the database that I can then query: curl -X POST http://127.0.0.1:5984/basic -d '{}' 4. Now query the view*: curl http://127.0.0.1:5984/basic/_design/example/_view/foo *it is this that gives me the following error: {"error":"EXIT","reason":"{function_clause,\n [{couch_httpd,handle_db_request,\n [{mochiweb_request,#Port<0.2949>,'GET',\n \"\/basic\/_design\/example\/_view\/foo\",\n {1,1},\n {3,\n {\"user-agent\",\n {'User-Agent',\n \"curl\/7.18.2 (i486-pc-linux-gnu) libcurl\/7.18.2 OpenSSL\/0.9.8g zlib\/1.2.3.3 libidn\/1.10\"},\n {\"host\",\n {'Host',\"127.0.0.1:5984\"},\n {\"accept\",{'Accept',\"*\/*\"},nil,nil},\n nil},\n nil}}},\n 'GET',\n {\"basic\",<0.6827.0>,[\"_design\",\"example\",\"_view\",\"foo\"]}]},\n {couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n {proc_lib,init_p_do_apply ...Any idea why??? I need to get this working ASAP because my boss is getting angry! Steve --=_alternative 000154BDCA257731_=--