Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DF3BD59B for ; Thu, 16 May 2013 13:22:22 +0000 (UTC) Received: (qmail 89310 invoked by uid 500); 16 May 2013 13:22:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88966 invoked by uid 500); 16 May 2013 13:22:17 -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 88947 invoked by uid 99); 16 May 2013 13:22:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 13:22:16 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lahiker42@gmail.com designates 209.85.210.181 as permitted sender) Received: from [209.85.210.181] (HELO mail-ia0-f181.google.com) (209.85.210.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 13:22:11 +0000 Received: by mail-ia0-f181.google.com with SMTP id y25so3363350iay.26 for ; Thu, 16 May 2013 06:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Jd3LV5PeQnzgPFMbWvt2duA19vgDVX91DXlixIRpzBI=; b=SOm1dIPL0OodI/yxEYAmRvl8qbscmdbEbA1ujnzfqeAtbbRqCqir1j8J/XXJmFUy7r Mbwb7Bj2Twi2exsXacu1X1yp86WhID3VdiTBk4I2h46VX+24MU7m+7PIm8vHxK2+avCs JEbr0xgdWLPkUXSNAV74XIUt9Y1qwsLdR+iT5g4JmXjr4pIjHViQqB2+Nd5kcp+3ZcwO sTFqAlBkhc5IfOztqh2E7oL4XZqnKPTcpQg2e2/wVNKwWOll5Ng75LV7uH+dt9EtRy4G TGiA/BPKEb9BgYmVgtIHnpEpTDyQUqH/22wr/rA1rLp09amJ1n/0so7Yz3gggkkOO1QX smIQ== MIME-Version: 1.0 X-Received: by 10.50.87.4 with SMTP id t4mr9207384igz.76.1368710510923; Thu, 16 May 2013 06:21:50 -0700 (PDT) Received: by 10.64.241.101 with HTTP; Thu, 16 May 2013 06:21:50 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 May 2013 06:21:50 -0700 Message-ID: Subject: Re: function_clause error when changing table design From: Dave Benson To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=089e0111bb74cdd7a804dcd5bfa3 X-Virus-Checked: Checked by ClamAV on apache.org --089e0111bb74cdd7a804dcd5bfa3 Content-Type: text/plain; charset=ISO-8859-1 OK, it turns out that I had old mochiweb libraries lying around and they were being used instead of the correct versions. I guess maybe the "mochiweb_request" module-tuple is constructed manually instead of going through "new", b/c it seems to be the correct size, even though the module doesn't support that size. odd... On Wed, May 15, 2013 at 1:33 PM, Dave Benson wrote: > I'm having a lot of trouble seeing why this isn't working. I'm a little > uncertain about how parameterized modules are supposed to show up in a > stack-trace, but this seems reasonable. I don't see how > mochiweb_request:get(scheme) could possibly be a function_clause problem... > and inserting a catch-all "get(_) -> true" at the end doesn't fix the > problem. And ideas what to try? > > I am using couchdbkit, but I don't think it's related to the problem... > > > [error] [<0.137.0>] function_clause error in HTTP request > [info] [<0.137.0>] Stacktrace: [{mochiweb_request,get, > [scheme, > {mochiweb_request,#Port<0.2551>,'PUT', > "/abc_db/_design/xyz", > {1,1}, > {7, > {"host", > {'Host',"127.0.0.1:5985"}, > {"accept-encoding", > {'Accept-Encoding',"identity"}, > {"accept", > {'Accept',"application/json"}, > nil,nil}, > {"content-length", > {'Content-Length',"11945"}, > {"authorization", > {'Authorization',"Basic Og=="}, > nil,nil}, > {"content-type", > > {'Content-Type',"application/json"}, > nil,nil}}}, > {"user-agent", > {'User-Agent',"couchdbkit/0.6.4"}, > nil,nil}}}}]}, > {couch_httpd,absolute_uri,2}, > {couch_httpd_db,update_doc,4}, > {couch_httpd_db,do_db_req,2}, > {couch_httpd,handle_request_int,5}, > {mochiweb_http,headers,5}, > {proc_lib,init_p_do_apply,3}] > > --089e0111bb74cdd7a804dcd5bfa3--