Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 1892 invoked from network); 17 May 2010 15:51:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 15:51:39 -0000 Received: (qmail 62606 invoked by uid 500); 17 May 2010 15:51:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62554 invoked by uid 500); 17 May 2010 15:51:37 -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 62540 invoked by uid 99); 17 May 2010 15:51:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:51:37 +0000 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dbfclark@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 15:51:30 +0000 Received: by gwj20 with SMTP id 20so1378613gwj.11 for ; Mon, 17 May 2010 08:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vRGzXOJVg/WhA2t/jKkP3QyYRfqZnhllHJYMLdSkcV4=; b=TdLyPjiYFLvlSoGttZTZSFkxlB3rNsFLXYmQ36SMF9a0NqjH9kCO5OGZt3LrLSHLVq SdkYtZBYvftB5L15O/bZM9ZUO00gCD3zc0q5OZ/EBy9sFL84tZ2mfvnKyI4uxKHViMDD sX8XA8qFo+olAbV8epp5OeMI1yKA9D8xnpEoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rHPDrzD7Wjg1ceoNDb30ZyBQf0o4mPwN9OjB4ardAgmheno769oSq9rO4XsLzQopgM l+rtNmDFZ5BiH45QrFdxsSkAXNlYGYrPJ0OM0JCFArPt0Z8+WQrSwlmpBi/y9U2j7Tyw LOcEo1TsFcmFr1QABugTD+HyGeprvlp1TWZo0= MIME-Version: 1.0 Received: by 10.229.211.68 with SMTP id gn4mr1163855qcb.79.1274111468726; Mon, 17 May 2010 08:51:08 -0700 (PDT) Received: by 10.229.98.71 with HTTP; Mon, 17 May 2010 08:51:08 -0700 (PDT) Date: Mon, 17 May 2010 11:51:08 -0400 Message-ID: Subject: Strange ajax problem From: Dennis Clark To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016363b85f27f6b060486cc3191 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b85f27f6b060486cc3191 Content-Type: text/plain; charset=ISO-8859-1 Unfortunately, my list is already wrapped in a provides and the problem continues; I'm running 0.12.0a938305 and here's my stacktrace: [error] [<0.311.0>] function_clause error in HTTP request [info] [<0.311.0>] Stacktrace: [{mochiweb_util,parse_qs_key,[undefined,[]]}, {mochiweb_util,parse_qs,2}, {couch_httpd_external,json_req_obj,3}, {couch_httpd_show,start_list_resp,6}, {couch_httpd_show,finish_list,7}, {couch_query_servers,with_ddoc_proc,2}, {couch_httpd_db,do_db_req,2}, {couch_httpd,handle_request_int,5}] On May 12, 2010, at 12:59 PM, Dennis Clark wrote: > Long time lurker, first time writer? > > I'm writing a couchapp and I'm trying to use ajax to get a list from my design document and load it into my page. I get a function_clause error when I run the list from jquery, but if I try to get the same URL with curl or just open the link that generates the error in a new browser window I get exactly what I'm supposed to. Happy to provide more information if it helps, but is there some kind of known problem that's causing this behavior that someone can just tell me how to avoid? > This could be due to a mismatch in the Accept header handling. maybe. It's worth trying to wrap your list in a function(req, head) { provides("html", function() { // html handling code here while (row = getRow()) { ... blah ... } }); }; Hope that helps. If it doesn't please provide your version info and a stacktrace so we can help you in more detail. Thanks, Chris --0016363b85f27f6b060486cc3191--