Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 78563 invoked from network); 6 Apr 2010 17:47:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 17:47:26 -0000 Received: (qmail 44906 invoked by uid 500); 6 Apr 2010 17:47:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 44875 invoked by uid 500); 6 Apr 2010 17:47:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 44867 invoked by uid 99); 6 Apr 2010 17:47:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 17:47:24 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erich.oliphant@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 17:47:20 +0000 Received: by gwj23 with SMTP id 23so51631gwj.11 for ; Tue, 06 Apr 2010 10:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=5zYB7jmJs0wtdqVGa1qkIa+dSaZsVUKMNQ7rUlKUJqw=; b=wvzD+y6CjFkHVwu1QIshbtTif8hXeZT1+vedrcrH/71AopCQjcU9AoEjKqYzk9ow68 mR+XLnD6ib8IlQG6MWUD8YGE3DGoAVtgFTsB0dLiMcylvdACAc8l83GLsRRNBh0jfv5I TXlwOfdoxq2zTeS46of/VXpJQaLV0lglDGoI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=M4jiVtjC0zK6yC3p3HRJmjPJEW2W7v28Fgz9eRRadg/lU9Vv8LjU8wTXupepe7Mh3g N6WPJRYc1XtODmIDOxI4z7gv5wsYTZAKA2mlZPR1U+3pY7eF9o7g3XgcyLI1t8R76XfP FtO2xp5RC4iD847d38KQoSds7Awo08mLgS8Ak= MIME-Version: 1.0 Received: by 10.150.203.18 with HTTP; Tue, 6 Apr 2010 10:46:59 -0700 (PDT) In-Reply-To: <2F0862B5-28C3-4F0D-AEDA-367C915E38CD@apache.org> References: <2F0862B5-28C3-4F0D-AEDA-367C915E38CD@apache.org> Date: Tue, 6 Apr 2010 13:46:59 -0400 Received: by 10.150.62.5 with SMTP id k5mr783712yba.18.1270576019333; Tue, 06 Apr 2010 10:46:59 -0700 (PDT) Message-ID: Subject: Re: "attempted upload of invalid JSON" message for valid json From: erich oliphant To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd5c8e84ae1230483950876 --000e0cd5c8e84ae1230483950876 Content-Type: text/plain; charset=ISO-8859-1 Ok will try that as well On Tue, Apr 6, 2010 at 10:20 AM, Jan Lehnardt 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 >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.oliphant@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": " >>> 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 --000e0cd5c8e84ae1230483950876--