Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 97470 invoked from network); 8 Dec 2009 17:12:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 17:12:32 -0000 Received: (qmail 97148 invoked by uid 500); 8 Dec 2009 17:12:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97071 invoked by uid 500); 8 Dec 2009 17:12:29 -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 97006 invoked by uid 99); 8 Dec 2009 17:12:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 17:12:28 +0000 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 (nike.apache.org: domain of sebastiancohnen@googlemail.com designates 209.85.218.218 as permitted sender) Received: from [209.85.218.218] (HELO mail-bw0-f218.google.com) (209.85.218.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 17:12:18 +0000 Received: by bwz10 with SMTP id 10so4597280bwz.35 for ; Tue, 08 Dec 2009 09:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=vwIHUQkcFyzUkEcANgdlmylPkKfYqeupnn8csZL0Goc=; b=IUdAaltA70a4s84BHXA2zRExn1El2tjTwPmGRxS5ETFX7xtKnMT5BgtwfLXPyfbWe5 5QvLAUVhp1BiL5V55c3OPb0XpMVnMJ4b6/EQzgVjTmoBWvTem5Anp+jHZ2b968whSIPJ NJPAJBe1H6MtyOwbFXX4DxlCAC1mL+/hHfJUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=BmFXXUuvfGobMGmwSVKGRKAxLO+8q5S8KBcYGRBPU+8olCIKpvVqDpujLgPiCCu1az t4+8iE80VxEUJ1HSEeMDoZUaz7YJbXwzm5r7amKgTrurKrDPFtDcuKFMKmssskwPLMJL qJx8dCYaDjZMiUTjztp6oVtyAebFgC4Hd5qYc= Received: by 10.103.50.33 with SMTP id c33mr777780muk.104.1260292317159; Tue, 08 Dec 2009 09:11:57 -0800 (PST) Received: from shakti.fritz.box (koln-5d81923d.pool.mediaWays.net [93.129.146.61]) by mx.google.com with ESMTPS id 7sm10374840mup.55.2009.12.08.09.11.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 09:11:56 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"} From: Sebastian Cohnen In-Reply-To: Date: Tue, 8 Dec 2009 18:11:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <78657260-72E7-47D5-AF3E-308EBABC2FF6@googlemail.com> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org 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