Hi,
I added the ',' to the command:
curl -X PUT
http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af
-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üngliche Nachricht-----
Von: Magnus Eklund [mailto:[email protected]]
Gesendet: Dienstag, 8. Dezember 2009 17:40
An: [email protected]
Betreff: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"}
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
>
>