Subject: | LWP::UserAgent 6.06 causes timeout in BPA |
Date: | Thu, 8 Oct 2015 17:21:10 -0500 |
To: | bug-Business-PayPal-API [...] rt.cpan.org |
From: | JT Smith <jt [...] plainblack.com> |
LWP::UserAgent 6.06 introduced the following default for timeout:
$timeout = 3*60 unless defined $timeout;
This causes the following error in Business:PayPal::API
500 Can't connect to api-3t.sandbox.paypal.com:443 at /data/apps/lib/perl5/site_perl/5.16.2/Business/PayPal/API.pm line 144.
Because BPA sets an explicit 0 default, which means it immediately times out. I filed a bug with LWP as well as it’s their backward compatibility issue, but you might want to consider setting it to a more reasonable 30 or something like that.