couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: invalid UTF-8 JSON
Date Thu, 19 Aug 2010 23:45:06 GMT
If you recently updated couch be sure you don't have an old version of
the mochiweb libraries around anywhere.
See for example: http://permalink.gmane.org/gmane.comp.db.couchdb.user/7780

On Thu, Aug 19, 2010 at 16:39, Landon Clark <landon@lclark.net> wrote:
> I am using a tool called Chef to manage our servers.  Chef uses
> CouchDB as a backend storage engine.  Chef captures about 200KB of
> data about the configuration of each server.  Occasionally, CouchDB
> returns an error (using both 1.0.1 on OSX 10.6 and .10.0 on Ubuntu
> 10.4):
> {"error":"bad_request","reason":"invalid UTF-8 JSON"}
>
> As far as I can tell, the JSON is valid.  I have loaded it using the
> Ruby JSON parser and a JSONlint validator.
>
> Can someone give me a hint about how I should go about debugging this?
>  I tried enabling debugging in CouchDB but that did not give me any
> more information that I can decipher.
>
> Attached in the JSON and I am trying to load it using this command:
> curl -X PUT -H "content-type: application/json"
> http://127.0.0.1:5984/test/doc -d @error.log
>
> Any help would be much appreciated.
>
> Thanks,
> Landon
>

Mime
View raw message