couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erich oliphant <>
Subject "invalid UTF-8 JSON" 400 error accessing view with 'key' parameter
Date Wed, 17 Mar 2010 00:33:01 GMT
I am a new CouchDB user.  I've populated my db with some documents and I've
begun delving into views.  I have a simple view that seems to work fine with
no params, like so:

curl -X GET http://localhost:5984/testerp1/_design/onestop/_view/PONumbers
However trying to grab a single result, causes a 400
curl -vX GET
* About to connect() to localhost port 5984 (#0)
*   Trying ::1... Connection refused
*   Trying fe80::1... Connection refused
*   Trying connected
* Connected to localhost ( port 5984 (#0)
> GET /testerp1/_design/onestop/_view/PONumbers?key=AAA-99057 HTTP/1.1
> User-Agent: curl/7.20.0 (i386-apple-darwin10.2.0) libcurl/7.20.0
OpenSSL/0.9.8m zlib/1.2.4 libidn/1.16
> Host: localhost:5984
> Accept: */*
< HTTP/1.1 400 Bad Request
< Server: CouchDB/0.10.1 (Erlang OTP/R13B)
< Date: Wed, 17 Mar 2010 00:28:46 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 54
< Cache-Control: must-revalidate
{"error":"bad_request","reason":"invalid UTF-8 JSON"}
* Connection #0 to host localhost left intact
* Closing connection #0

I've tried the key param with and without quotes,etc but get the same
issue.   All of the other issues I've seen online have been related to PUT
bodies not being encoded correctly, but I've seen nothing similar to my

Thanks In Advance
Erich Oliphant

"There are, in fact, two things, science and opinion, the former begets
knowledge, the latter ignorance"
-- Hippocrates of Cos

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