twitter HTTP Error 401: Unauthorized

Bug #315673 reported by Speedboy
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gwibber
Fix Released
Undecided
Unassigned

Bug Description

Since a couple of days i get this "HTTPError: HTTP Error 401: Unauthorized" for twitter in gwibbers errorlist and then it just stops showing all twitter messages. Sometimes i get this immediately when i start gwibber, other times only after using it a while. I use the gwibber version of jorge's ppa and i tried the latest bzr, both versions show it.

Revision history for this message
aqeeliz (aqeeliz) wrote :

I am having same problem, I though it was something with twitter's service, but other clients seems to be working fine. I have also tried reducing number of API calls, but still getting same error.

Revision history for this message
Speedboy (speedboyii) wrote :

When i use the "branch lp:~oldman/gwibber/bug-311793" version of gwibber this bug is gone!

Revision history for this message
Speedboy (speedboyii) wrote :

Hmm, i was too quick with my cheering. On my desktop with Arch Linux (Python 2.6) and the oldman branch i didn't get one error today. (after +- 8 hours) But on my laptop with Linux Mint (Python 2.5) i just got it again (after half an hour), with some more info this time.

 File "/home/myaccaunt/Programma's/Gwibber/bug-311793/gwibber/microblog/twitter.py", line 116, in connect
    url, data, {"Authorization": self.get_auth()})).read()
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

Could it have something to do with Python 2.5?

Revision history for this message
aqeeliz (aqeeliz) wrote :

I am not sure if both our problem is same or not, but for me, problem occur pretty much at same time in every hour, from around 40th min to 10th minute of every hour. And in that time, I can't login with other clients either. I have tried changing my password in case some online service (with which I have shared my password) keeps connecting with it and use my API - limit, but no luck.

I also contacted twitter support but no one replied. I am at complete loss to figure out what the problem is.

Revision history for this message
Speedboy (speedboyii) wrote :

The problem fixed itself. I haven't had it for half a week now.

Revision history for this message
aqeeliz (aqeeliz) wrote :

Problem solved itself. Either twitter server fixed it, or Gwibber changed something, in any case, this is no longer an issue

Changed in gwibber:
status: New → Invalid
jkbkot (jkbkot)
Changed in gwibber:
status: Invalid → In Progress
Revision history for this message
Rene Horn (the-rhorn) wrote :

Well, I still get this error. I've even deleted the cache files, and gconf settings, and recreated my twitter within gwibber, and I still get the error.

Here's the error I get:
           Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/__init__.py", line 130, in run
    messages = self.perform_operation(opdata)
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/__init__.py", line 107, in perform_operation
    for message in output:
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 213, in receive
    for data in self.get_messages():
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 164, in get_messages
    urllib.urlencode({"count": self.account["receive_count"] or "20"})))
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 159, in connect
    "https://twitter.com/%s" % url, data, headers = {"Authorization": self.get_auth()}))
  File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 395, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 508, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 433, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 516, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

Revision history for this message
Omer Akram (om26er) wrote :

this is fixed in gwibber 2.29.xx series

Changed in gwibber:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.