CouchDB 0.11 Invalid UTF-8 JSON: Solved
-
1 min read
If your CouchDB 0.11 gives you the “Invalid UTF-8 JSON” error on every POST
or PUT you issue to it, make sure that in your
$prefix/usr/lib/couchdb/erlang/lib
there aren’t leftovers from previous
installations.
On our dev server, I found there two directories (“couch-0.10” and “mochiweb-r97”) from the old 0.10 setup that were causing this issue.
This applies if you upgraded from source, as you’ve probably did, because there aren’t too many packages of CouchDB 0.11 as of April 2010 :-).
Huge thanks to @couchdb for hinting me in the right direction after reading a report on the dev mailing list but I didn’t want to “remove and reinstall” because I like to understand what’s going on ;-).
Footnote: could this be the end of Hiatus? I hope so ;-p