incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Gillies <tjgill...@gmail.com>
Subject Re: invalid UTF-8 JSON
Date Thu, 19 Aug 2010 23:47:00 GMT
Have you ever used puppet? http://www.puppetlabs.com/puppet/introduction/

<http://www.puppetlabs.com/puppet/introduction/>chef alternative

On Thu, Aug 19, 2010 at 4:45 PM, Randall Leeds <randall.leeds@gmail.com>wrote:

> 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
> >
>



-- 
PdxBrain <http://www.pdxbrain.com> - My Home

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