Twitter API doesn't work after installing OTRS

English! place to talk about development, programming and coding
Post Reply
markodikic
Znuny newbie
Posts: 2
Joined: 08 Oct 2016, 01:03
Znuny Version: 3.3.8

Twitter API doesn't work after installing OTRS

Post by markodikic »

Hi everybody.

I'm working on Windows 7 x86. I have installed Active Perl 5.16.3, Net::OAuth and Net::Twitter::Lite::WithAPIv1_1. I wrote small script in Perl that fetches tweets from my twitter account. Script goes something like this:

Code: Select all

my $consumer_key = ...
my $consumer_secret = ...
my $access_token = ...
my $access_token_secret = ...

my $nt = Net::Twitter::Lite::WithAPIv1_1->new(
consumer_key        => $consumer_key,
consumer_secret     => $consumer_secret,
access_token        => $access_token,
access_token_secret => $access_token_secret,
ssl                 => 1,
);

my @status_groupes = $nt->home_timeline({ count => 200,
trim_user => 0 });

# later printing data that is returned
But when i installed OTRS, script stopped working. It ends when calling home_timeline with message
500: write failed: Bad file descriptor
. Does anybody know why is this happening? How did OTRS change my Active Perl installation and why is script not working anymore?

Thanks in advance,
Marko
markodikic
Znuny newbie
Posts: 2
Joined: 08 Oct 2016, 01:03
Znuny Version: 3.3.8

Re: Twitter API doesn't work after installing OTRS

Post by markodikic »

One update. I later installed Strawberry Perl 5.16.3.1 on test system and after installing OTRS, script still worked. I don't know what happens with Active Perl. But, I must work with Active Perl because it is installed on production system.
Post Reply