← Back to team overview

gwibber-bugs team mailing list archive

[Bug 676498] Re: Twitter timeline parse bug

 

[Expired for Gwibber because there has been no activity for 60 days.]

** Changed in: gwibber
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Gwibber
Bug Heros, which is subscribed to Gwibber.
https://bugs.launchpad.net/bugs/676498

Title:
  Twitter timeline parse bug

Status in Gwibber:
  Expired

Bug description:
  Gwibber from the daily ppa still has one bug in the Twitter timeline
  parsing.

  This notice
  http://twitter.com/#!/pantoffelpunk/status/4896542318137344 breaks the
  parsing (probably due to some funky character in it, I have had
  similar problems with swedish tweets).

  The error I get when running gwibber-service -o -d is:
  -------------------------
  Gwibber Dispatcher: ERROR    Twitter failure - {u'user': {u'follow_request_sent': False, u'profile_use_background_image': True, u'id': 15560484, u'verified': False, u'profile_sidebar_fill_color': u'bbae8b', u'profile_text_color': u'564d38', u'followers_count': 1694, u'profile_sidebar_border_color': u'd9ceb5', u'location': u'Rendsburg', u'profile_background_color': u'333333', u'id_str': u'15560484', u'utc_offset': 3600, u'statuses_count': 10835, u'description': u'', u'friends_count': 273, u'profile_link_color': u'9e2a1f', u'profile_image_url': u'http://a0.twimg.com/profile_images/637901976/pantoffel_normal.jpg', u'notifications': False, u'show_all_inline_media': False, u'geo_enabled': True, u'profile_background_image_url': u'http://a3.twimg.com/profile_background_images/69939015/anschlag.png', u'screen_name': u'pantoffelpunk', u'lang': u'de', u'profile_background_tile': False, u'favourites_count': 23, u'name': u'pantoffelpunk', u'url': u'http://blog.pantoffelpunk.de', u'created_at': u'Wed Jul 23 12:13:44 +0000 2008', u'contributors_enabled': False, u'time_zone': u'Berlin', u'protected': False, u'following': True, u'listed_count': 204}, u'favorited': False, u'contributors': None, u'truncated': False, u'text': u'Danke f&Atilde;&frac14;r den Hinweis, habe das jetzt gesperrt... (@Kalzifer89)http://yfrog.com/4oxoyj', u'created_at': u'Wed Nov 17 14:00:01 +0000 2010', u'retweeted': False, u'in_reply_to_status_id_str': None, u'coordinates': None, u'id': 4896542318137344, u'source': u'<a href="http://yfrog.com"; rel="nofollow">Yfrog</a>', u'in_reply_to_status_id': None, u'in_reply_to_screen_name': None, u'id_str': u'4896542318137344', u'place': None, u'retweet_count': None, u'geo': None, u'in_reply_to_user_id_str': None, u'in_reply_to_user_id': None}

  <snip/>
  Traceback (most recent call last):

    File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 64, in perform_operation
      m["rtl"] = util.isRTL(re.sub(text_cleaner, "", m["text"].decode('utf-8')))
  KeyError: 'text'
  ---------------------------------

  This renders twitter feed paring unusable for as long as the message has not been taken care of.
  A workaround (that I tried locally but that looks weird) would be to switch from m['text'] to m.get('text',"") or something, but the cleaner way would probably be to make sure that all values in the "m" dictionary are actually set.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gwibber/+bug/676498/+subscriptions