zigdon / twirssi

An irssi script allowing the use of Twitter from within the IRC client.
http://twirssi.com
133 stars 27 forks source link

Failed to get OAuth authorization_url: GET ... #63

Closed atomi closed 11 years ago

atomi commented 11 years ago

I was having some problems with TWIRSSI v2.5.1 updating my timeline. I decided to remove the twirssi oauth, id and json files and re-authorize but Twirssi is now giving me this error when running the command /twitter_login atomi

ERROR: Failed to get OAuth authorization_url: GET https://api.twitter.com/oauth/request_token failed: 401
          Unauthorized at /usr/share/perl5/Net/Twitter/Role/OAuth.pm line 111.
atomi commented 11 years ago

I tried updating to the latest from Github TWIRSSI 2.6.0beta2 and this is the error I get

09:24 ERROR: Error when creating object:  Can't locate Net/Twitter/Role/API/RESTv1_1.pm in @INC (@INC contains:
          /home/atomi/.irssi/scripts /usr/share/irssi/scripts /usr/lib/perl/5.10 /etc/perl
          /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5
          /usr/share/perl/5.10 /usr/local/lib/site_perl .). at /usr/lib/perl5/Class/MOP.pm line 132
09:24 IClass::MOP::load_first_existing_class('Net::Twitter::Role::API::RESTv1_1') called at
          /usr/lib/perl5/Class/MOP.pm line 137
09:24 IClass::MOP::load_class('Net::Twitter::Role::API::RESTv1_1') called at /usr/share/perl5/Net/Twitter.pm line
          44
09:24 INet::Twitter::__ANON__('Net::Twitter', 'API::RESTv1_1', 'OAuth', 'RetryOnError') called at
          /usr/share/perl5/Net/Twitter.pm line 93
09:24 INet::Twitter::new('Net::Twitter', 'traits', 'ARRAY(0x2a009f8)', 'consumer_key', 'BZVAvBma4GxdiRwXIvbnw',
          'consumer_secret', '0T5kahwLyb34vciGZsgkA9lsjtGCQ05vxVE2APXM', 'source', 'twirssi', ...) called at
          /home/atomi/.irssi/scripts/autorun/twirssi.pl line 860
09:24 Ieval {...} called at /home/atomi/.irssi/scripts/autorun/twirssi.pl line 851
09:24 IIrssi::Script::twirssi::cmd_login('atomi', 'Irssi::Irc::Server=HASH(0x29fc048)', undef) called at -e line 0
09:24 Ieval {...} called at -e line 0
09:24
09:24 ERROR: Failed to create object!  Aborting.
zigdon commented 11 years ago

What version of Net::Twitter? Have you restarted irssi since upgrading N:T last?

On Tue, Apr 30, 2013 at 10:06 AM, atomi notifications@github.com wrote:

I tried updating to the latest from Github TWIRSSI 2.6.0beta2 and this is the error I get

09:24 ERROR: Error when creating object: Can't locate Net/Twitter/Role/API/RESTv1_1.pm in @INC (@INC contains: /home/atomi/.irssi/scripts /usr/share/irssi/scripts /usr/lib/perl/5.10 /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/share/perl/5.10 /usr/local/lib/site_perl .). at /usr/lib/perl5/Class/MOP.pm line 132 09:24 IClass::MOP::load_first_existing_class('Net::Twitter::Role::API::RESTv1_1') called at /usr/lib/perl5/Class/MOP.pm line 137 09:24 IClass::MOP::load_class('Net::Twitter::Role::API::RESTv1_1') called at /usr/share/perl5/Net/Twitter.pm line 44 09:24 INet::Twitter::ANON('Net::Twitter', 'API::RESTv1_1', 'OAuth', 'RetryOnError') called at /usr/share/perl5/Net/Twitter.pm line 93 09:24 INet::Twitter::new('Net::Twitter', 'traits', 'ARRAY(0x2a009f8)', 'consumer_key', 'BZVAvBma4GxdiRwXIvbnw', 'consumer_secret', '0T5kahwLyb34vciGZsgkA9lsjtGCQ05vxVE2APXM', 'source', 'twirssi', ...) called at /home/atomi/.irssi/scripts/autorun/twirssi.pl line 860 09:24 Ieval {...} called at /home/atomi/.irssi/scripts/autorun/twirssi.pl line 851 09:24 IIrssi::Script::twirssi::cmd_login('atomi', 'Irssi::Irc::Server=HASH(0x29fc048)', undef) called at -e line 0 09:24 Ieval {...} called at -e line 0 09:24 09:24 ERROR: Failed to create object! Aborting.

— Reply to this email directly or view it on GitHubhttps://github.com/zigdon/twirssi/issues/63#issuecomment-17240284 .

Dan Boger

atomi commented 11 years ago

@zigdon Thanks for the quick reply, I realized the updated twirssi.pl needs the latest Net:Twitter a bit ago. I'm currently trying to install it, but it's taking it's sweet time and giving me some build errors. I'll post back the results once I get it going.

atomi commented 11 years ago

Okay, so building Net::Twitter was being a huge pain. On Debian, I decided to install the SID version via editing the /etc/apt/sources.list file and adding deb http://ftp.de.debian.org/debian sid main then installing apt-get install libnet-twitter-perl and of course commenting out the SID repo in sources.list after install.

That seems to have installed the newest Net::Twitter version and Twirssi is running as expected.

I don't know how you do it, I've found building Perl packages to be just painful. But thanks again.

zigdon commented 11 years ago

I just use the magic of cpan and let it worry about it. Of course, that might break apt, so ymmv.

On Tue, Apr 30, 2013 at 11:11 AM, atomi notifications@github.com wrote:

Okay, so building Net::Twitter was being a huge pain. On Debian, I decided to install the SID version via editing the /etc/apt/sources.list file and adding deb http://ftp.de.debian.org/debiansid main then installing apt-get install libnet-twitter-perl and of course commenting out the SID repo in sources.list after install.

That seems to have installed the newest Net::Twitter version and Twirssi is running as expected.

I don't know how you do it, I've found building Perl packages to be just painful. But thanks again.

— Reply to this email directly or view it on GitHubhttps://github.com/zigdon/twirssi/issues/63#issuecomment-17244417 .

Dan Boger