Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 55428 invoked from network); 10 Jun 2008 18:19:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 18:19:03 -0000 Received: (qmail 33619 invoked by uid 500); 10 Jun 2008 18:19:05 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 33600 invoked by uid 500); 10 Jun 2008 18:19:05 -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 33589 invoked by uid 99); 10 Jun 2008 18:19:05 -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:19:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brking@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 18:18:13 +0000 Received: by py-out-1112.google.com with SMTP id u52so1038024pyb.13 for ; Tue, 10 Jun 2008 11:18:13 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nGjp7SFqa/rLwu+ElNbJ413SM8q7XM0bnLmlh54ZWwA=; b=xUm73dhaND1PM5uFho7VYINvSA1PszKD/yihYP6gNJqfKKw619MacIY6MMw80wo+Fo OhhLcJq1KNRhB4kWlsg7Wesd4ybcPtG19TYcu/DyMru552skHtAnsJO7smwtu/FI4Cwy wIWgkqylghOH5z0eu0ZmrcziZqhFBtW2H7rzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ml0DoFhU7zOPWtfiHCXkGTfu2BnJ+gwJZX/udBanBzqCEfZQhAgE2vUV4lZxpEsNA2 5fbzLnbRZ3R1RzoTumH2YySmSobEvzci9e7dnmtvAWMOlNIz+oKCQlHAf9+lAGOKiKrj wM+K7vesG2zWq2+BOTem96z5dP2745RglKVJg= Received: by 10.115.88.1 with SMTP id q1mr5365986wal.122.1213121892853; Tue, 10 Jun 2008 11:18:12 -0700 (PDT) Received: by 10.114.182.11 with HTTP; Tue, 10 Jun 2008 11:18:12 -0700 (PDT) Message-ID: <888cd9180806101118sa8d2671gee270216d6500dbe@mail.gmail.com> Date: Tue, 10 Jun 2008 14:18:12 -0400 From: "Brad King" To: couchdb-user@incubator.apache.org Subject: Re: 500 server error posting a view In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <888cd9180806101101u28b29cban871829654da09b05@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Chris: ah, yes I screwed up the URL, however I still get the 500 after fixing this: POST /product/_temp_view HTTP/1.0 Content-Type: application/json Content-Length: 55 Host: d0002rptdb02:5984 { "map" : "function(doc) { emit(null, doc); } " } Different error though HTTP/1.0 500 Internal Server Error Server: inets/develop Date: Tue, 10 Jun 2008 18:12:52 GMT Cache-Control: no-cache Pragma: no-cache Expires: Tue, 10 Jun 2008 18:12:52 GMT Connection: close Content-Type: text/plain;charset=utf-8 {"error":"query_language_unknown","reason":"application\/json"} Jan, this is the correct format for an ad-hoc view, no? the page you linked me to is where I got the info. BTW I can browse the database just fine with a web browser, and the default query runs ok in a browser as well. Thanks On 6/10/08, Chris Anderson wrote: > Brad, > > It look like the url: > > > POST /product/_test_view HTTP/1.0 > > > > should be /product/_design/test_view (for a named view) > > or /product/_temp_view > > assuming your db name is product. > > Hope that helps. > > Chris > > -- > Chris Anderson > http://jchris.mfdz.com >