couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Frisch <peter.fri...@vervis.de>
Subject RE: Fetch multiple Documents with a single request
Date Thu, 14 Oct 2010 09:29:56 GMT
My next attempts looked like this:

curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82", "1284,133491,420777@default"]}' -H 'Content-Type=application/json'
-X POST http://whatever/codebluebig/_all_docs?include_docs=true

and

curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82", "1284,133491,420777@default"]}' -H "Content-Type=application/json"
-X POST http://whatever/codebluebig/_all_docs?include_docs=true

and still resulted in:

{"error":"bad_request","reason":"invalid UTF-8 JSON"}

Any other thoughts?


-----Original Message-----
From: Benoit Chesneau [mailto:bchesneau@gmail.com] 
Sent: Donnerstag, 14. Oktober 2010 11:01
To: user@couchdb.apache.org
Subject: Re: Fetch multiple Documents with a single request

On Thu, Oct 14, 2010 at 10:54 AM, Peter Frisch <peter.frisch@vervis.de> wrote:
> I was very happy to find the apache wiki page about fetching bulk documents with one
request. Unfortunately I always receive a error message claiming that my request was no valid
JSON. After staring at my request for half an hour I still can't find a malformed JSON there:
>
> curl -d '{"keys":["1-7987539b0f7c047728dbd21b16fe442e"]}' -X POST http://whatever/codebluebig/_all_docs
>
> Has anyone an idea what the problem might be?
>

-H "Content-Type: application/json" is missing.

- benoƮt

Mime
View raw message