From user-return-17928-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Sep 14 23:07:01 2011 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 C68F172B4 for ; Wed, 14 Sep 2011 23:07:01 +0000 (UTC) Received: (qmail 87949 invoked by uid 500); 14 Sep 2011 23:07:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 87902 invoked by uid 500); 14 Sep 2011 23:07:00 -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 87893 invoked by uid 99); 14 Sep 2011 23:07:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 23:07:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of randall.leeds@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 23:06:55 +0000 Received: by iahk25 with SMTP id k25so909079iah.11 for ; Wed, 14 Sep 2011 16:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=USBI5tmQpqL+O9oouVRs6zHyGr62nEoxy+Uol7qFD18=; b=wWjg5LQ39LMHRvjk3WV2iXv6bFcNJsJbN+MHXkRdk/fsapSCAgrFiVwJxJa6biEWbl BJSwNFtRj+IrdiSWsWEntVMi3pCBeT3mVlvPt/DCwYy1jO0wN59SPR790jbAi9DrCG1H KE7vT6T7sXJtl7VUBU5Q+WX0WqU6ILV2/w/8E= MIME-Version: 1.0 Received: by 10.231.65.72 with SMTP id h8mr704564ibi.47.1316041527727; Wed, 14 Sep 2011 16:05:27 -0700 (PDT) Received: by 10.42.222.193 with HTTP; Wed, 14 Sep 2011 16:05:27 -0700 (PDT) In-Reply-To: References: <050C91F2664C44CFA66A262EE4124ADC@gmail.com> <2BF74825-0072-400F-8A85-419E13CF129A@gmail.com> Date: Wed, 14 Sep 2011 16:05:27 -0700 Message-ID: Subject: Re: CouchDB Crash report db_not_found when attempting to replicate databases From: Randall Leeds To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00151773db98c5180104aceecbe5 --00151773db98c5180104aceecbe5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Sep 14, 2011 at 13:55, Jens Alfke wrote: > > On Sep 14, 2011, at September 14, 201112:19 PM, Adam Kocoloski wrote: > > There's a multipart API which allows for a single PUT request containing > the document body as JSON and all its attachments in their raw form. > Documentation is pretty thin at the moment, and unfortunately I think it > doesn't quite allow for a pipe(). Would be really nice if it did, though. > > Any tips on how to invoke this? It would be very useful in the framework > I=E2=80=99m working on. > I just checked and > there=E2=80=99s nothing about it. > Check out the lines in mikeal replicator I linked to. It should give you some hints. I think it's PUT with Content-Type: multipart/related and then you just sen= d the body followed by the attachments. I think you need to have an _attachments object in the body and for each attachment specify content_type, length, and follows: true. > > =E2=80=94Jens > --00151773db98c5180104aceecbe5--