From couchdb-user-return-679-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Tue Jul 08 11:17:38 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 27302 invoked from network); 8 Jul 2008 11:17:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2008 11:17:38 -0000 Received: (qmail 55065 invoked by uid 500); 8 Jul 2008 11:17:38 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 54908 invoked by uid 500); 8 Jul 2008 11:17:37 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 54897 invoked by uid 99); 8 Jul 2008 11:17:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 04:17:37 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of puzza007@gmail.com designates 209.85.198.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 11:16:46 +0000 Received: by rv-out-0708.google.com with SMTP id k29so2594481rvb.0 for ; Tue, 08 Jul 2008 04:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=zzIw4eAwRU063DP1o3+p4nlmnFKPBvvbdKuYymm1Q88=; b=xd2D24F2zdnmsuxMyYLlR/rzzgF+RaXfosF2PxuY+XzYaJgxtyTF38mxIZGMu+RcQt fPmPxLnTlkzs0rwPvoVuZXo04SmhuJ7VbvGsXBixE9nDVuLG6wbG10N4vvX5qarlVh2i cQ7kzKO/h8RxtQrxZSEMnCBya2VncStcvox4s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=hA/z+3pnqZeQOmPZ4RWXCt9Jz2aLuWSg5PHLzTUCH3anhntdrhDkNxzve7+x/FOhXv EeKxdJkN5AxaZwNm5zL0ROzUIa8gemmkEYTbz6kYT38VZ+9G/IUyIPewEjUsFYxf2qzE k/oDEiyxtdBnReRfng1ElvQM1EdVfiWnYR660= Received: by 10.140.165.21 with SMTP id n21mr3097694rve.97.1215515828078; Tue, 08 Jul 2008 04:17:08 -0700 (PDT) Received: by 10.141.177.11 with HTTP; Tue, 8 Jul 2008 04:17:08 -0700 (PDT) Message-ID: Date: Tue, 8 Jul 2008 12:17:08 +0100 From: "Paul Oliver" To: couchdb-user@incubator.apache.org Subject: view question MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm trying to get a simple view going. Can anybody tell me what I'm doing wrong here? I'm using Apache CouchDB 0.8.0-incubating. altais:~$ curl -H 'Content-Type:application/json' --data 'function(doc) { emit(null, doc); }' http://localhost:5984/mydb/_temp_view returns: {"error":"EXIT","reason":"{function_clause,[{cjson,tokenize,\n [\"function(doc) { emit(null, doc); }\",\n {decoder,unicode,null,1,1,any}]},\n {cjson,decode1,2},\n {cjson,json_decode,2},\n {couch_httpd,handle_db_request,3},\n {couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n {proc_lib,init_p,5}]}"} Thanks in advance, Paul.