Why does Net::Twitter complain "HTTP::Message content not bytes"?

Posted by Russell C. on Stack Overflow See other posts from Stack Overflow or by Russell C.
Published on 2010-04-22T15:23:27Z Indexed on 2010/04/22 15:53 UTC
Read the original article Hit count: 241

Filed under:
|
|

We have been using Perl's Net:Twitter CPAN module (version 3.12) and basic authentication (not OAuth) for almost a year now to syndicate updates from our site to our Twitter account. We just migrated to a new server last week and since the move our updates to Twitter have stopped and the following error is being reported whenever we try to post an update:

HTTP::Message content not bytes at /usr/lib/perl5/site_perl/5.8.8/HTTP/Request/Common.pm line 90

Here is the code we're using the update our Twitter account:

use Net::Twitter;
my $twitter = Net::Twitter->new(
    traits   => [qw/API::REST/],
    username => $username,
    password => $password,
    source => 'twitterfeed'
);  

my $result = $twitter->update($status);

I have no idea what the issue is and was hoping that someone else has run into this issue and can provide a quick solution. Thanks in advance for your help!

© Stack Overflow or respective owner

Related posts about perl

Related posts about twitter