pasting an URL into gwibber fails if there's an error with the URL shortening services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I tried to paste an URL into gwibber text box but nothing showed up.
After starting gwibber from terminal I can see the following error whenever I try to paste in an URL:
Traceback (most recent call last):
File "/usr/local/
short = urllib2.urlopen("http://
File "/usr/lib/
return _opener.open(url, data)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib2.HTTPError: HTTP Error 500: Internal Server Error
Clearly this was a problem with the is.gd server api, cause after a few minutes it worked again
Then I noticed another problem. I had "Automatically shorten Urls" enabled and I tried to post a tinyurl. Seems like this makes is.gd always fail with a 500 internal error.
I think gwibber should just paste the link as it is if it get's an error from the url shortening service and it should do a better job at identifying know shortening services and if the url is already shortenend it should not try to shorten it again.
Yep, I can replicate this. The reason why it consistently fails when you paste in a tinyurl link is because is.gd blacklists other shortening and redirection sites in order to prevent people from chaining shortened URLs.
I concur with your suggestions for error handling and proper fallback behavior. I'll try to implement this soon.