From user-return-12213-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Aug 19 23:47:28 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 83857 invoked from network); 19 Aug 2010 23:47:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 23:47:28 -0000 Received: (qmail 99474 invoked by uid 500); 19 Aug 2010 23:47:26 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99391 invoked by uid 500); 19 Aug 2010 23:47:26 -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 99383 invoked by uid 99); 19 Aug 2010 23:47:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 23:47:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tjgillies@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 23:47:22 +0000 Received: by ewy20 with SMTP id 20so2263589ewy.11 for ; Thu, 19 Aug 2010 16:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=FTX9jrXtZWZVgKxVKCGu1QMlgq6+BlkIjWxrBzKWI4A=; b=xVZHTa6nkGNhdkWGhmoLoaDee9ZasaPsgikKu8HnVbDqY2RZsjrEGUC59kKI1ghn2z nVzCe8fJVYfz+XwsPuZRDoL3FZdWMUqhvKw00qx2WtELNoxh3rxFKzcvhkSZMyaZNrtR aGs9X2SJny8YnyMsh/pQljnAaa6EXjlNwzrcc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OYD+ZMnhEw0UC3o9+kA7iUxgYA5MPUS1SR7cn4rB3E+HG5okDNVhPS9cVYlhQwDy+8 5qmvlVaPFvtEadZfKF0d910f4Oj4ua8+H/eFGazfTn1G4l6nyXdytECBIuhD2OxHLU1J ljwunUhGhkjBqoHnshtAJ+bkdQq1mj/gRMaKo= MIME-Version: 1.0 Received: by 10.213.31.134 with SMTP id y6mr691288ebc.82.1282261620416; Thu, 19 Aug 2010 16:47:00 -0700 (PDT) Received: by 10.213.27.132 with HTTP; Thu, 19 Aug 2010 16:47:00 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Aug 2010 16:47:00 -0700 Message-ID: Subject: Re: invalid UTF-8 JSON From: Tyler Gillies To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015174c124064e4a8048e35cc28 --0015174c124064e4a8048e35cc28 Content-Type: text/plain; charset=UTF-8 Have you ever used puppet? http://www.puppetlabs.com/puppet/introduction/ chef alternative On Thu, Aug 19, 2010 at 4:45 PM, Randall Leeds wrote: > If you recently updated couch be sure you don't have an old version of > the mochiweb libraries around anywhere. > See for example: > http://permalink.gmane.org/gmane.comp.db.couchdb.user/7780 > > On Thu, Aug 19, 2010 at 16:39, Landon Clark wrote: > > I am using a tool called Chef to manage our servers. Chef uses > > CouchDB as a backend storage engine. Chef captures about 200KB of > > data about the configuration of each server. Occasionally, CouchDB > > returns an error (using both 1.0.1 on OSX 10.6 and .10.0 on Ubuntu > > 10.4): > > {"error":"bad_request","reason":"invalid UTF-8 JSON"} > > > > As far as I can tell, the JSON is valid. I have loaded it using the > > Ruby JSON parser and a JSONlint validator. > > > > Can someone give me a hint about how I should go about debugging this? > > I tried enabling debugging in CouchDB but that did not give me any > > more information that I can decipher. > > > > Attached in the JSON and I am trying to load it using this command: > > curl -X PUT -H "content-type: application/json" > > http://127.0.0.1:5984/test/doc -d @error.log > > > > Any help would be much appreciated. > > > > Thanks, > > Landon > > > -- PdxBrain - My Home --0015174c124064e4a8048e35cc28--