Bug#1037535: libnet-twitter-perl: "Could not authenticate you." errors since 2023-06-13

gregor herrmann gregoa at debian.org
Wed Jun 14 09:54:33 BST 2023


Control: retitle -1 libnet-twitter-perl: Does not support Twitter API v2
Control: severity -1 important
Control: found -1 4.01043-1
Control: clone -1 -2
Control: reassign -2 libnet-twitter-lite-perl
Control: retitle -2 libnet-twitter-lite-perl: Does not support Twitter API v2
Control: found -2 0.12008-1

On Tue, 13 Jun 2023 23:54:23 +0200, Vincent Lefevre wrote:

> On 2023-06-13 23:18:47 +0200, Vincent Lefevre wrote:
> > It seems that something changed on Twitter, which yields the
> > "Could not authenticate you." error with Net::Twitter. This
> > started to happen a few hours ago.

Funny coincidence: I also had an "app" suspended yesterday and hit
the same issue (with clients in perl, python, and C).
 
> I think that's it:
> https://twitter.com/TwitterDev/status/1621026986784337922
> "Starting February 9, we will no longer support free access to the
> Twitter API, both v2 and v1.1. A paid basic tier will be available
> instead"

Which is also not true anymore, AFAIK. My current understanding is:
- Twitter is over time suspending old "apps" (happened to me already
  earlier this year, and again yesterday).
- It's possible to create a "project" and move the old "app" there,
  thereby reactivating it -- but by the new rules:

* There are paid and unpaid plans with different features.
* Twitter API v1.1 is quite limited (for all plans).
Cf. https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api


So the problem is not that Net::Twitter and Net::Twitter::Lite are
broken per se but that they don't support the Twitter API v2 which is
a pain as the API v1.1 is very limited by now (except for still
working old "apps") -- but I can confirm that uploading images with
Net::Twitter::Lite still works.
 
Apparently Twitter::API has some support for the Twitter API v2 [0]
which I still have to try.


Cheers,
gregor

[0]

https://metacpan.org/pod/Twitter::API

#v+
my $client = Twitter::API->new_with_traits(
    api_version => '2',
    api_ext     => '',
    %oauth_credentials,
);
 
my $user = $client->get("users/by/username/$username");
#v-

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   BOFH excuse #189:  SCSI's too wide. 



More information about the pkg-perl-maintainers mailing list