Twitter doesn't work anymore after retirement of v1 api on 12.04

Bug #1190575 reported by Khurshid Alam
54
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Gwibber
New
Undecided
Unassigned
gwibber (Ubuntu)
Confirmed
Undecided
Unassigned
Precise
Triaged
High
Robert Bruce Park

Bug Description

Gwibber does NOT work with twitter anymore as Twitter abandoned their v1 api.

On Ubuntu 12.04 gwibber (3.4.2) still uses twitter api v1. This can be confirmed by running following commands:

cat /usr/share/gwibber/plugins/twitter/__init__.py | grep 'API_PREFIX ='
API_PREFIX = "https://api.twitter.com/1"

On twitter developer page it says:
"Authenticated & unauthenticated requests to api.twitter.com/1/* will receive HTTP 410 Gone. Use API v1.1 instead."

Hence it is unable to receive any tweets.

summary: - Twitter doesn't work anymore after retirement of v1 api
+ Twitter doesn't work anymore after retirement of v1 api on 12.04
description: updated
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Robert, can you look at this? The maintenance branch is lp:gwibber/3.4

Changed in gwibber (Ubuntu Precise):
assignee: nobody → Robert Bruce Park (robru)
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gwibber (Ubuntu):
status: New → Confirmed
Revision history for this message
Realramnit (realramnit) wrote :

Robert, can you see how long it will take you to fix that?
If you need more than a few days to fix this I've to swap the client for the meantime. :(

Revision history for this message
Robert Bruce Park (robru) wrote :

Yeah, this is not exactly my top priority right now.

Ken, do you know offhand if 1.1 is implemented in later versions of gwibber? Can I just SRU a newer version or do I actually have to implement twitter 1.1 from scratch here?

Revision history for this message
segundo (segundo-albertog) wrote :

Yes, it's my problem !!!! Turpial & hotot = bug

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Workaround:

On Quantal (Gwibber 3.6):

pkill gwibber
Open "/usr/share/gwibber/plugins/twitter/__init__.py" in gedit as root & change
`API_PREFIX = "https://api.twitter.com/1"` to
`API_PREFIX = "https://api.twitter.com/1.1"`

On Precise (Gwibber 3.4.2):

Same changes will work.

But time to time it tends to throw "sorry that page is not found". However I couldn't able to reproduce it.Unfortunately I am no expert in python, hence I have a hard time to figure out what API change on twitter part causing this.

Revision history for this message
Eemil Lagerspetz (eemil-lagerspetz) wrote :

The workaround works for me, but I need to also change line 144 of /usr/share/gwibber/plugins/twitter/gtk/twitter/__init__.py to
        http_url="http://api.twitter.com/1.1/account/verify_credentials.json", parameters=None)

Thanks!

Revision history for this message
cat (netcat-z) wrote :

@Eemil Lagerspetz @Khurshid Alam: It works! Thank both of you!

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.