Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 25096 invoked from network); 6 Apr 2010 14:21:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 14:21:27 -0000 Received: (qmail 15189 invoked by uid 500); 6 Apr 2010 14:21:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 15164 invoked by uid 500); 6 Apr 2010 14:21:25 -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 15156 invoked by uid 99); 6 Apr 2010 14:21:25 -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 14:21:25 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 14:21:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.traeumt.net (Postfix) with ESMTP id 064A81B582 for ; Tue, 6 Apr 2010 16:20:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.g3th.net Received: from unknown by localhost (amavisd-new, unix socket) id Y5-At7a2cr+N for ; Tue, 6 Apr 2010 16:20:54 +0200 (CEST) Received: from [10.0.1.14] (62-220-4-154.berlikomm.net [62.220.4.154]) (authenticated) by mail.traeumt.net (amavisd-milter) (authenticated as web50m1); Tue, 6 Apr 2010 16:20:54 +0200 (CEST) (envelope-from ) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: "attempted upload of invalid JSON" message for valid json From: Jan Lehnardt In-Reply-To: Date: Tue, 6 Apr 2010 16:20:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2F0862B5-28C3-4F0D-AEDA-367C915E38CD@apache.org> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) 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"}". >=20 > Is there any way to get more info in the logs about just what it's = upset > about? >=20 > On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis = wrote: >=20 >> Works for me to push that in and get it out on trunk. >>=20 >> 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. >>=20 >> Paul >>=20 >> On Mon, Apr 5, 2010 at 3:14 PM, erich oliphant = >> 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. >>>=20 >>> 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=3D\"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 >>> } >>> -- >>>=20 >>> -- >>> Erich Oliphant >>>=20 >>> "There are, in fact, two things, science and opinion, the former = begets >>> knowledge, the latter ignorance" >>> -- Hippocrates of Cos >>>=20 >>=20 >=20 >=20 >=20 > --=20 > Erich Oliphant >=20 > "There are, in fact, two things, science and opinion, the former = begets > knowledge, the latter ignorance" > -- Hippocrates of Cos