Problem solved (with a bit of embarassment). Turns out that appears to be a bug in a JSON parsing library I was using. Going from a JSON string to it's 'JSONObject' and back to a string seemed to introduce the problem. Taking it out works like a charm.
Thanks for the help. On Tue, Apr 6, 2010 at 10:20 AM, Jan Lehnardt <j...@apache.org> wrote: > When updating, can you make sure to remove all traces of the 0.10 > installation. > > The "invalid UTF-8 JSON" error comes up a lot with older versions of > CouchDB > in the same installation path. > > Cheers > Jan > -- > > On 6 Apr 2010, at 03:06, erich oliphant wrote: > > > Ok, I have upgraded to 11.0 have the same problem. If I cut and paste > from > > the log into a file and try PUT'ing it with curl I get the > > "{"error":"bad_request","reason":"invalid UTF-8 JSON"}". > > > > Is there any way to get more info in the logs about just what it's upset > > about? > > > > On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <paul.joseph.da...@gmail.com > >wrote: > > > >> Works for me to push that in and get it out on trunk. > >> > >> Can you paste a stack trace or similar? Also, you're using a json > >> library of some sort to generate that right? If not you might want to > >> check for stray whitespace in strings or other such wonderous things. > >> > >> Paul > >> > >> On Mon, Apr 5, 2010 at 3:14 PM, erich oliphant < > erich.oliph...@gmail.com> > >> wrote: > >>> Hi, > >>> While investigating another issue, i noticed a lot of "attempted upload > >> of > >>> invalid JSON" messages in the couch log. I grabbed a few of the > >> documents > >>> from the log and they all seem to pass JSON lint validation. > >>> > >>> One example : > >>> -- > >>> { > >>> "contributors": null, > >>> "text": "@dankennedy_nu on the radio now is Doobie Brothers' \"Jesus > >> is > >>> just alright with me\"", > >>> "geo": null, > >>> "in_reply_to_screen_name": "dankennedy_nu", > >>> "truncated": false, > >>> "id": 11587311501, > >>> "source": "<a href=\"http://ubertwitter.com\" > >>> rel=\"nofollow\">UberTwitter<\/a>", > >>> "favorited": false, > >>> "in_reply_to_status_id": 11587091075, > >>> "created_at": "Sun Apr 04 13:26:32 +0000 2010", > >>> "in_reply_to_user_id": 15675013, > >>> "place": null, > >>> "user": { > >>> "location": "?T: 42.353691,-71.072597", > >>> "profile_background_tile": true, > >>> "statuses_count": 25, > >>> "lang": "en", > >>> "profile_link_color": "038543", > >>> "id": 109715034, > >>> "following": null, > >>> "favourites_count": 1, > >>> "protected": false, > >>> "profile_text_color": "000103", > >>> "contributors_enabled": false, > >>> "description": "Boston Herald Staff Photog and owner of the soon > >> to > >>> be photo blog pictureboston.com", > >>> "verified": false, > >>> "name": "Mark Garfinkel", > >>> "profile_sidebar_border_color": "EEEEEE", > >>> "profile_background_color": "ACDED6", > >>> "created_at": "Sat Jan 30 00:53:49 +0000 2010", > >>> "followers_count": 73, > >>> "geo_enabled": false, > >>> "profile_background_image_url": " > >>> http://a3.twimg.com/profile_background_images/79991589/ok2.jpg", > >>> "url": "http://www.pictureboston.com", > >>> "utc_offset": null, > >>> "time_zone": null, > >>> "notifications": null, > >>> "friends_count": 175, > >>> "profile_sidebar_fill_color": "F6F6F6", > >>> "screen_name": "pictureboston", > >>> "profile_image_url": " > >>> http://a1.twimg.com/profile_images/728957810/ok_normal.jpg" > >>> }, > >>> "coordinates": null > >>> } > >>> -- > >>> > >>> -- > >>> Erich Oliphant > >>> > >>> "There are, in fact, two things, science and opinion, the former begets > >>> knowledge, the latter ignorance" > >>> -- Hippocrates of Cos > >>> > >> > > > > > > > > -- > > Erich Oliphant > > > > "There are, in fact, two things, science and opinion, the former begets > > knowledge, the latter ignorance" > > -- Hippocrates of Cos > > -- Erich Oliphant "There are, in fact, two things, science and opinion, the former begets knowledge, the latter ignorance" -- Hippocrates of Cos