From couchdb-user-return-507-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Tue Jun 10 18:09:00 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 50835 invoked from network); 10 Jun 2008 18:09:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 18:09:00 -0000 Received: (qmail 21667 invoked by uid 500); 10 Jun 2008 18:09:02 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 21645 invoked by uid 500); 10 Jun 2008 18:09:02 -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 21634 invoked by uid 99); 10 Jun 2008 18:09:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 11:09:02 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 18:08:12 +0000 Received: from [10.0.2.3] (e179128030.adsl.alicedsl.de [::ffff:85.179.128.30]) (AUTH: LOGIN jan, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Tue, 10 Jun 2008 18:08:25 +0000 Message-Id: From: Jan Lehnardt To: couchdb-user@incubator.apache.org In-Reply-To: <888cd9180806101101u28b29cban871829654da09b05@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: 500 server error posting a view Date: Tue, 10 Jun 2008 20:08:24 +0200 References: <888cd9180806101101u28b29cban871829654da09b05@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org Heya Brad, your design document definition is incomplete see http://wiki.apache.org/couchdb/HttpViewApi "Creating Views" for how a complete design doc needs to look like. Cheers Jan On Jun 10, 2008, at 20:01, Brad King wrote: > I'm trying to create a simple ad-hoc view based on one of the wiki > examples: > > POST /product/_test_view HTTP/1.0 > Content-Type: application/json > Content-Length: 55 > Host: d0002rptdb02:5984 > > { > "map" : "function(doc) { emit(null, doc); } " > } > > > This returns a 500 server error. Response details: > > HTTP/1.0 500 Internal Server Error > Server: inets/develop > Date: Tue, 10 Jun 2008 17:56:30 GMT > Cache-Control: no-cache > Pragma: no-cache > Expires: Tue, 10 Jun 2008 17:56:30 GMT > Connection: close > Content-Type: text/plain;charset=utf-8 > > {"error":"EXIT","reason":"{function_clause,\n [{mod_couch,do,\n > [{mod,\n > {init_data,{1414,\"172.20.3.43\"},\"d0002rptdb02\"},\n > [],ip_comm,#Port<0.990>,httpd_conf_5984,\"POST\",\n > \"d0002rptdb02:5984\/product\/_test_view\",\n > \"\/product\/_test_view\",\"HTTP\/1.0\",\n \"POST > \/product\/_test_view HTTP\/1.0\",\n > [{\"host\",\"d0002rptdb02:5984\"},\n > {\"content-length\",\"55\"},\n > {\"content-type\",\"application\/json\"}],\n \"{\\r\\n > \\\"map\\\" : \\\"function(doc) { emit(null, doc); } > \\\"\\r\\n}\\r\\n\",\n false},\n > {uri_parts,\"product\",\"_test_view\",[],[],[]}]},\n > {mod_couch,do,1},\n {httpd_response,traverse_modules,2},\n > {httpd_response,generate_and_send_response,1},\n > {httpd_request_handler,handle_response,1},\n > {gen_server,handle_msg,5},\n {proc_lib,init_p,5}]}"} > > The server log says something about an unrecognized query language. > What am I doing wrong? The c# CouchBrowse application also returns a > 500 for the default query, so I'm thinking its some kind of server > setup issue. > > Brad >