From user-return-7920-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Dec 08 20:47:19 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 99993 invoked from network); 8 Dec 2009 20:47:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 20:47:19 -0000 Received: (qmail 65176 invoked by uid 500); 8 Dec 2009 20:47:18 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65102 invoked by uid 500); 8 Dec 2009 20:47:18 -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 65092 invoked by uid 99); 8 Dec 2009 20:47:18 -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 20:47:18 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebastiancohnen@googlemail.com designates 209.85.220.212 as permitted sender) Received: from [209.85.220.212] (HELO mail-fx0-f212.google.com) (209.85.220.212) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 20:47:15 +0000 Received: by fxm4 with SMTP id 4so6082249fxm.32 for ; Tue, 08 Dec 2009 12:46:54 -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=BxKoLTWMRREVjkZNxWbRrzVTFBWr3jZfSRcdrNfprOA=; b=QGEk5Fm+EBlyOe/Q2veIgRO4adUdet8eQmA6E0YJd5x1SZHgJu91H8DuhgIkFcSgC3 fJeQGvPCGFYw4/pLb0Lj15VIXuAvGVIWBa6hlXtdyqFEmXze7VL3QEHi/qC5XAH1pvDw kPuCi9qbcENFgsKWTY/jOja90uuEZ0uiGElzY= 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=pvxUrYsUvDFD2vInlhPjYNeBdPRA8zEskf/UDGa1a8C7er6fWX7OkEY+Zwss/3IJ6/ DlOIN62dOyp55JGWqQFJxjC0vtS/JJG9NwsiX0bf5iwY2xTDczFvlJLAUbfPzFFDOo90 dRj6OnlpHWmWKz7tgom04mhY61qTqyrdHOUTA= Received: by 10.103.76.22 with SMTP id d22mr1128053mul.63.1260305214231; Tue, 08 Dec 2009 12:46:54 -0800 (PST) Received: from shakti.fritz.box (koln-5d81923d.pool.mediaWays.net [93.129.146.61]) by mx.google.com with ESMTPS id 7sm10905929mup.25.2009.12.08.12.46.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 12:46:53 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: AW: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"} From: Sebastian Cohnen In-Reply-To: Date: Tue, 8 Dec 2009 21:46:51 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <856CEEAD-2AB5-46B9-9D8F-09B03D3A22AA@googlemail.com> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) works for me at 0.10 and trunk (0.11.0bf94630fd-git) w/o any problems: # I curl -X POST http://localhost:5984/test/ -d '{"title":"There is = Nothing Left to Lose","artist":"Foo Fighters"}' = {"ok":true,"id":"f985de3010541f808ce3663a20b4d6e4","rev":"1-4b39c2971c9ad5= 4cb37e08fa02fec636"} On 08.12.2009, at 18:18, Stefan Fischer wrote: > Sorry, >=20 > I run the commany with ' also. > Same result >=20 >=20 > -----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"} >=20 > you are missing a single quote: > -d{ > should be > -d '{ >=20 >=20 > On 08.12.2009, at 18:08, Stefan Fischer wrote: >=20 >> 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 >=20 >=20 >=20