Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 95868 invoked from network); 8 Dec 2009 17:09:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 17:09:17 -0000 Received: (qmail 89912 invoked by uid 500); 8 Dec 2009 17:09:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89816 invoked by uid 500); 8 Dec 2009 17:09:14 -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 89806 invoked by uid 99); 8 Dec 2009 17:09:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 17:09:14 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [82.135.30.86] (HELO mail.basis.biz) (82.135.30.86) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 17:09:12 +0000 Received: from [10.8.85.10] (port=53920 helo=mail.int.basis.biz) by mail.basis.biz with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NI3YO-0002XC-31 for user@couchdb.apache.org; Tue, 08 Dec 2009 18:08:48 +0100 Received: from mail.int.basis.biz (localhost.localdomain [127.0.0.1]) by mail.int.basis.biz (8.13.8/8.13.8) with ESMTP id nB8H8m7m016110 for ; Tue, 8 Dec 2009 18:08:48 +0100 Date: Tue, 8 Dec 2009 18:08:48 +0100 From: "Stefan Fischer" To: user@couchdb.apache.org Message-ID: In-Reply-To: Subject: AW: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"} x-scalix-Hops: 1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I added the ',' to the command: curl -X PUT=20 http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af=20 -d{"title":"There is Nothing Left to Lose","artist":"Foo Fighters"}' Still the same problem: {"error":"bad_request","reason":"invalid UTF-8 JSON"} CouchDB runs on Windows 2003 Server -Stefan -----Urspr=FCngliche Nachricht----- Von: Magnus Eklund [mailto:magnus.eklund@gmail.com]=20 Gesendet: Dienstag, 8. Dezember 2009 17:40 An: user@couchdb.apache.org Betreff: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"} Hi There might be other issues as well but you are missing a comma =20 between the title and artist attributes. I think that what you want is curl -X PUT=20 http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af=20 -d{"title":"There is Nothing Left to Lose","artist":"Foo Fighters"}' - Magnus On Dec 8, 2009, at 3:56 PM, Stefan Fischer wrote: > Hi, > > > > after playing with couchdb 0.10 examples: > > > > > > command: > > curl -X PUT > http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af -d > '{"title":"There is Nothing Left to Lose" "artist":"Foo Fighters"}' > > > > I get the following error: > > > > {"error":"bad_request","reason":"invalid UTF-8 JSON"} > > > > > > Whats wrong, > > > > How to fix it ? > > > > Thanks, > > SF > >