From user-return-7911-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Dec 08 17:18:36 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 99316 invoked from network); 8 Dec 2009 17:18:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 17:18:36 -0000 Received: (qmail 6367 invoked by uid 500); 8 Dec 2009 17:18:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6224 invoked by uid 500); 8 Dec 2009 17:18:34 -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 6214 invoked by uid 99); 8 Dec 2009 17:18:33 -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:18:33 +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:18:31 +0000 Received: from [10.8.85.10] (port=52250 helo=mail.int.basis.biz) by mail.basis.biz with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NI3hQ-0002d5-38 for user@couchdb.apache.org; Tue, 08 Dec 2009 18:18:09 +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 nB8HI8b5017158 for ; Tue, 8 Dec 2009 18:18:08 +0100 Date: Tue, 8 Dec 2009 18:18:08 +0100 From: "Stefan Fischer" To: user@couchdb.apache.org Message-ID: In-Reply-To: <78657260-72E7-47D5-AF3E-308EBABC2FF6@googlemail.com> Subject: AW: Re: 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 Sorry, I run the commany with ' also. Same result -----Urspr=FCngliche Nachricht----- Von: Sebastian Cohnen [mailto:sebastiancohnen@googlemail.com]=20 Gesendet: Dienstag, 8. Dezember 2009 18:12 An: user@couchdb.apache.org Betreff: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8=20 JSON"} you are missing a single quote: -d{ should be -d '{ On 08.12.2009, at 18:08, Stefan Fischer wrote: > 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"}' >=20 > Still the same problem: > {"error":"bad_request","reason":"invalid UTF-8 JSON"} >=20 > CouchDB runs on Windows 2003 Server >=20 > -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"} >=20 > Hi >=20 > 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"}' >=20 > - Magnus >=20 > On Dec 8, 2009, at 3:56 PM, Stefan Fischer wrote: >=20 >> Hi, >>=20 >>=20 >>=20 >> after playing with couchdb 0.10 examples: >>=20 >>=20 >>=20 >>=20 >>=20 >> command: >>=20 >> curl -X PUT >> http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af -d >> '{"title":"There is Nothing Left to Lose" "artist":"Foo Fighters"}' >>=20 >>=20 >>=20 >> I get the following error: >>=20 >>=20 >>=20 >> {"error":"bad_request","reason":"invalid UTF-8 JSON"} >>=20 >>=20 >>=20 >>=20 >>=20 >> Whats wrong, >>=20 >>=20 >>=20 >> How to fix it ? >>=20 >>=20 >>=20 >> Thanks, >>=20 >> SF >>=20 >>=20