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 52403DFEE for ; Mon, 6 Aug 2012 18:31:51 +0000 (UTC) Received: (qmail 36700 invoked by uid 500); 6 Aug 2012 18:31:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36648 invoked by uid 500); 6 Aug 2012 18:31:49 -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 36638 invoked by uid 99); 6 Aug 2012 18:31:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 18:31:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.161.180] (HELO mail-gg0-f180.google.com) (209.85.161.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 18:31:45 +0000 Received: by ggnf1 with SMTP id f1so2829144ggn.11 for ; Mon, 06 Aug 2012 11:31:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=PEkBwACsyd/sn5i+7D3uUe7UrHA1rrQe/aYRC5UZSzY=; b=Da2IR+hQ+ZIDeO1HS95remd5VdwjZjl3yXNvKWGlRHelHliFsytyF3Ax2jLQW0OVTZ xeYEML1Ft3vQlPyfGIPce9UWf6JTsXbcdvIXC/ilPfYq2tFnt8QftaulX9PxCWmKl5nH 38K2cR3WstGRP5JX5ptcoMVh320GJ2RHw6A5q7xX+qbHgrI7ijDZRML0GrlRnuc/KFH/ OtiC0kpFbVpfJVe0OKgyxm2+aTQlE+/gefEXXVts/zmcgHskMMZQyRg2fYpu9+ast4CZ 4m5fvy4kKj3lPYgWRFaXw3DLZQBoSsy1NSE2Ik2C20MZW5UeKlHwlqb9Q9YfibBh55Zs Z+FA== MIME-Version: 1.0 Received: by 10.50.156.201 with SMTP id wg9mr6364244igb.45.1344277880107; Mon, 06 Aug 2012 11:31:20 -0700 (PDT) Received: by 10.231.8.217 with HTTP; Mon, 6 Aug 2012 11:31:20 -0700 (PDT) In-Reply-To: <80877B30-A67E-4FA6-B19A-93087D80BF55@couchbase.com> References: <12119867-1D77-4943-B87C-B8369C7005C8@couchbase.com> <80877B30-A67E-4FA6-B19A-93087D80BF55@couchbase.com> Date: Mon, 6 Aug 2012 20:31:20 +0200 Message-ID: Subject: Re: function_clause error in HTTP request From: Pieter van der Eems To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlGS77N8tn+/QErvPV6jTRfY1RAMSH4EZwXgiP4t5afhwWwLX0y5zafH3x2Crjp8vZ1DtVh X-Virus-Checked: Checked by ClamAV on apache.org 2012/8/6 Jens Alfke : > > On Aug 3, 2012, at 10:36 AM, Paul Davis wrote: > >> I've seen errors like this before. IIRC, the underlying issue is that >> there's a bug in the attachment handling related to gzipped vs >> identity content lengths. Specifically I think it was when CouchDB >> receives an attachment that's gzipped it doesn't bother doing an >> "gunzip > /dev/null" type operation to get the identity length and >> then when it sends the attachment to something that doesn't understand >> gzip compression there's a mismatch in what lengths are expected. > > I searched for this in Jira and found COUCHDB-1177 which has the exact same backtrace, although nothing in its description mentions attachments or gzip. We checked the IOS/TouchDB side and no attachments were gzipped. I did find a similar bug there: https://github.com/couchbaselabs/TouchDB-iOS/issues/116 Pieter