You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by erich oliphant <er...@gmail.com> on 2010/04/05 21:14:16 UTC

"attempted upload of invalid JSON" message for valid json

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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
I will double check it, I playing around with twitter 'dumps' as a bountiful
source of json to learn couch.  then pushing with a java (Spring MVC
RestTemplate) REST lib.   There was no stack trace, just the error message.
Problem is that if the dumped 'bad' json is the issue will be tricky to get
at the problem since whats logged seems to be ok (validates,etc)

On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <pa...@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 <er...@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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
Also, I am on 0.10.1, looks like macports has .11 up now.  I am going to
upgrade and see if that addresses it.

On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <pa...@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 <er...@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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
Ok here's one: 70C3A173.  It's supposed to be a an accented 'a' between a
lower case 'p' and 's'.

On Tue, Apr 6, 2010 at 9:58 AM, Paul Davis <pa...@gmail.com>wrote:

> Can you get me a hex dump of the data around that special character?
>
> Or even just see if its valid UTF-8 and not Latin-1 or something silly?
>
> On Tue, Apr 6, 2010 at 9:02 AM, erich oliphant <er...@gmail.com>
> wrote:
> > One more thing, I've noticed that all of the JSON in question seems to
> have
> > at least 1 special character (letters with accent marks etc)
> >
> > On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <paul.joseph.davis@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.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": "<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

Re: "attempted upload of invalid JSON" message for valid json

Posted by Paul Davis <pa...@gmail.com>.
Can you get me a hex dump of the data around that special character?

Or even just see if its valid UTF-8 and not Latin-1 or something silly?

On Tue, Apr 6, 2010 at 9:02 AM, erich oliphant <er...@gmail.com> wrote:
> One more thing, I've noticed that all of the JSON in question seems to have
> at least 1 special character (letters with accent marks etc)
>
> On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <pa...@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 <er...@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
>

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
One more thing, I've noticed that all of the JSON in question seems to have
at least 1 special character (letters with accent marks etc)

On Mon, Apr 5, 2010 at 4:07 PM, Paul Davis <pa...@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 <er...@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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
Ok will try that as well

On Tue, Apr 6, 2010 at 10:20 AM, Jan Lehnardt <ja...@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.davis@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.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": "<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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
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 <ja...@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.davis@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.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": "<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

Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
No joy :(  Did a macports uninstall on all versions,  went in and manually
deleted whatever was left around, then reinstalled.

On Tue, Apr 6, 2010 at 10:20 AM, Jan Lehnardt <ja...@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.davis@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.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": "<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

Re: "attempted upload of invalid JSON" message for valid json

Posted by Jan Lehnardt <ja...@apache.org>.
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 <pa...@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 <er...@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


Re: "attempted upload of invalid JSON" message for valid json

Posted by erich oliphant <er...@gmail.com>.
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 <pa...@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 <er...@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

Re: "attempted upload of invalid JSON" message for valid json

Posted by Paul Davis <pa...@gmail.com>.
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 <er...@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
>