Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 66094 invoked from network); 6 Apr 2010 01:06:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 01:06:27 -0000 Received: (qmail 45544 invoked by uid 500); 6 Apr 2010 01:06:26 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45502 invoked by uid 500); 6 Apr 2010 01:06:26 -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 45494 invoked by uid 99); 6 Apr 2010 01:06:26 -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 01:06:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,FREEMAIL_FROM,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 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 01:06:21 +0000 Received: by gyb13 with SMTP id 13so1711580gyb.11 for ; Mon, 05 Apr 2010 18:06:00 -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=fxRoFPSPP8HiNS13kbucToB4tCrcZ47jOEjNTH0Y0BU=; b=b+rnqBReKjKdC/8ZvGgYUvNe2IqI0ARA8NLLOfTfs9m5OMLm+S+XUFf0P+reIe8/H1 hLBjRgH2OSvYGoDtC/+oXF4VjYm01sCvt7K2Gqvp/ztXUJOCvpyxYTKZgDnurilHJW6r gOVgBenXpbhcUxnjbHhvEpnjRdOVtVBApUCgo= 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=VuhsOsuL+uG6HPdaR0F0uKwqAL7s9NH6cEdFl9Q9inTCiHP+oa/I4vRpuDbDzNLpcO x/kgzV7q12+l8DWy0yhfXugqEuuFwPgxzkCt34CFFmRxxwsnba6Dt9bQ59BSwhE4P0JO prClz88W6PCvZ8LVII9YNl9CMZaruMubKLFyc= MIME-Version: 1.0 Received: by 10.150.203.18 with HTTP; Mon, 5 Apr 2010 18:06:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Apr 2010 21:06:00 -0400 Received: by 10.150.81.5 with SMTP id e5mr7425257ybb.158.1270515960609; Mon, 05 Apr 2010 18:06:00 -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=000e0cd57340837b1f0483870c65 --000e0cd57340837b1f0483870c65 Content-Type: text/plain; charset=ISO-8859-1 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 > 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 --000e0cd57340837b1f0483870c65--