incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamyar Navidan <kamya...@gmail.com>
Subject Re: AW: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"}
Date Wed, 09 Dec 2009 03:04:59 GMT
I had the same problem with cmd.exe. Seemingly it cannot emit utf-8. I
solved this problem by using Power Shell (win7).

On Wed, Dec 9, 2009 at 12:16 AM, Sebastian Cohnen <
sebastiancohnen@googlemail.com> wrote:

> 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-4b39c2971c9ad54cb37e08fa02fec636"}
>
>
> On 08.12.2009, at 18:18, Stefan Fischer wrote:
>
> > Sorry,
> >
> > I run the commany with ' also.
> > Same result
> >
> >
> > -----Urspr√ľngliche Nachricht-----
> > Von: Sebastian Cohnen [mailto:sebastiancohnen@googlemail.com]
> > Gesendet: Dienstag, 8. Dezember 2009 18:12
> > An: user@couchdb.apache.org
> > Betreff: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8
> > 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
> >> 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:magnus.eklund@gmail.com]
> >> Gesendet: Dienstag, 8. Dezember 2009 17:40
> >> An: user@couchdb.apache.org
> >> 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
> >>>
> >>>
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message