On Thu Aug 26 13:07:00 2010, marc.mims@gmail.com wrote:
Show quoted text >
> I've re-run and examined the example script, and I'm not finding a
> problem with it.
>
> my $status = eval { $nt->user_timeline({ count => 1 }) };
>
> The line above isn't returning undef. Rather, it returns an array ref
> with a single status element.
>
> If the user_timeline call fails, $status will be undef, however, the
> following block, beginning with "if ( $@ )", should handle the error
> condition
>
> Can you reproduce the problem?
Actually, I can, and this is the issue. I begin the script at:
http://ww5.wundercounter.com:8080
I get bounced to Twitter and then Twitter sends me back to:
http://mirror.urwebhost.com:8080/oauth_callback?oauth_token...
The page is blank, but if I look at the command line output, I see:
Handling request for /oauth_callback
Use of uninitialized value in string eq at examples/oauth_webapp.pl line
108, <DATA> line 16.
Something is horribly wrong at examples/oauth_webapp.pl line 108, <DATA>
line 16.
So, I guess if that had appeared in the actual browser output, that
would have been a little more obvious, but the issue is on my end.
In my case the reverse DNS for that server IP is actually
mirror.urwebhost.com, which points back to the same machine. If the
script used HTTP_HOST rather than SERVER_NAME, I think it would have
redirected to the same URL which was originally used.
olaf-alderss-macbook-pro:~ olaf$ host ww5.wundercounter.com
ww5.wundercounter.com has address 64.37.82.105
olaf-alderss-macbook-pro:~ olaf$ host 64.37.82.105
105.82.37.64.in-addr.arpa domain name pointer mirror.urwebhost.com.
Bad DNS setup on my part, but using HTTP_HOST might not be a bad idea if
that variable is available.
Olaf