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

2023-06-14 Thread gregor herrmann
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. 



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

2023-06-13 Thread Vincent Lefevre
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.

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"

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



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

2023-06-13 Thread Vincent Lefevre
Package: libnet-twitter-perl
Version: 4.01043-2
Severity: grave
Justification: renders package unusable

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.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libnet-twitter-perl depends on:
ii  libcarp-clan-perl  6.08-2
ii  libclass-load-perl 0.25-2
ii  libcrypt-ssleay-perl   0.73.06-2+b1
ii  libdata-visitor-perl   0.31-1
ii  libdatetime-format-strptime-perl   1.7900-1
ii  libdatetime-perl   2:1.59-1
ii  libdevel-stacktrace-perl   2.0400-2
ii  libdigest-hmac-perl1.04+dfsg-2
ii  libhtml-parser-perl3.81-1
ii  libio-socket-ssl-perl  2.083-1
ii  libjson-maybexs-perl   1.004004-1
ii  liblwp-protocol-https-perl 6.10-1
ii  libmoose-perl  2.2203-1
ii  libmoosex-role-parameterized-perl  1.11-2
ii  libnamespace-autoclean-perl0.29-2
ii  libnet-http-perl   6.22-1
ii  libnet-oauth-perl  0.28-4
ii  libtry-tiny-perl   0.31-2
ii  liburi-perl5.19-1
ii  libwww-perl6.70-1
ii  perl   5.36.0-7

libnet-twitter-perl recommends no packages.

libnet-twitter-perl suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)