Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 85727 invoked from network); 8 Dec 2009 16:40:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 16:40:43 -0000 Received: (qmail 51741 invoked by uid 500); 8 Dec 2009 16:40:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51603 invoked by uid 500); 8 Dec 2009 16:40:40 -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 51590 invoked by uid 99); 8 Dec 2009 16:40:40 -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 16:40:40 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of magnus.eklund@gmail.com designates 209.85.219.215 as permitted sender) Received: from [209.85.219.215] (HELO mail-ew0-f215.google.com) (209.85.219.215) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 16:40:38 +0000 Received: by ewy7 with SMTP id 7so7331730ewy.32 for ; Tue, 08 Dec 2009 08:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=sjKbaVMknD7SVjqPv/KwmGJ7TvgjW/x0qdJ2FqikeiM=; b=Hwrmn/pqA59idKizUQLxKtjCHj19CwwASnHukyTljZil4fyK8PAqIalgrsrj9BU9IQ qL7RNRhGSSQrkSxVwuymwYc11BvHxBlIbfxzsHc2JEakRTPQefVHlpgK+IW8HGjnFLIY nOVoTGnRNy/wFZkEVpYYIVlMikJJTC2PwsUE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=dofa8NoTgTywv3OmQSu1q0BYcx7HfhSl4D42JuT//RNOlvUvVbLcVg62lQdlAFWIa3 b3CIUsdHzTQtjcB6KfhOuZifK9hT5zIWXH0A0HE/ZUQK/1E1io/0DZ4XTzqUhBl+lEoe m4tPFp0RsvlqbuI1UahA+SVI71hyCsQUhz5ZQ= Received: by 10.213.79.78 with SMTP id o14mr15491660ebk.21.1260290415046; Tue, 08 Dec 2009 08:40:15 -0800 (PST) Received: from ?10.0.1.2? (c-bae070d5.05-213-7570701.cust.bredbandsbolaget.se [213.112.224.186]) by mx.google.com with ESMTPS id 13sm615987ewy.9.2009.12.08.08.40.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 08:40:14 -0800 (PST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"} From: Magnus Eklund In-Reply-To: Date: Tue, 8 Dec 2009 17:40:12 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1076) Hi There might be other issues as well but you are missing a comma between the title and artist attributes. I think that what you want is curl -X PUT http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af -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 > >