Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 27675 invoked from network); 23 Jun 2008 04:41:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 04:41:08 -0000 Received: (qmail 32450 invoked by uid 500); 23 Jun 2008 04:41:10 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 32414 invoked by uid 500); 23 Jun 2008 04:41:10 -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 32403 invoked by uid 99); 23 Jun 2008 04:41:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2008 21:41:10 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of patcito@gmail.com designates 209.85.198.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 04:40:20 +0000 Received: by rv-out-0708.google.com with SMTP id k29so8108733rvb.0 for ; Sun, 22 Jun 2008 21:40:39 -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=UgtEI6dBVmTJAMgslfvH3aP2YAoGfs8ZVZiXxb57Oms=; b=Hd45+NKf5vUrsdgXT/zzP1N7YdWkf/w4HBXK5EzLA2BiWw20sW5ycO6+gxHDHWDh5G j8ihAoSfEtBG0HrKvEiXa5WQMIQerNfod65RZq3mIbkP0ucW4jSA3MolC46rqZTiL+7F DyAqOCdJVoDoyJuxMyQGzmva86a0bRlDrKQXQ= 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=Tc9vkglm9zJovGAo6/oty3R1XAt/e2MFZOAGF0ASLzTE+LvP+x0NTOpW2yJiWLh7Vi Qivm5YGV5UGSrsPBTewX4RMh851LbgtDXGtIPyBsYsOGc+qTZQxhtR2ecJoUBRji1bMo p/glc8XIqvFhTYTdSQXaoxiGzF+gH0CjMaBUQ= Received: by 10.140.133.10 with SMTP id g10mr11979857rvd.170.1214196039431; Sun, 22 Jun 2008 21:40:39 -0700 (PDT) Received: by 10.151.78.10 with HTTP; Sun, 22 Jun 2008 21:40:39 -0700 (PDT) Message-ID: <6b6419750806222140n32a63dcby7b4ebcc1aaab65f9@mail.gmail.com> Date: Sun, 22 Jun 2008 23:40:39 -0500 From: "Patrick Aljord" To: couchdb-user@incubator.apache.org Subject: Re: couchdb and blobs (using only couchdb or couchrest) In-Reply-To: <6b6419750806222109n32c98699se58bd624ac82de9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6b6419750806222109n32c98699se58bd624ac82de9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Here is how to reproduce the issue: require 'openid' @cr = CouchRest.new("http://localhost:5984") @db = @cr.create_db('couchrest-testy') blob = OpenID::CryptUtil.hmac_sha1('foo', 'bar') response = @db.save({:key => blob}) and it gives: JSON::GeneratorError: source sequence is illegal/malformed from /home/pat/gitreps/mymerbapp/lib/couchrest/lib/couch_rest.rb:50:in `to_json' from /home/pat/gitreps/mymerbapp/lib/couchrest/lib/couch_rest.rb:50:in `post' from /home/pat/gitreps/mymerbapp/lib/couchrest/lib/database.rb:54:in `save' from (irb):59 from :0 not sure if this is a couchrest specific bug, jchris? :)