cgiME has asked for the wisdom of the Perl Monks concerning the following question:

running perl-ubuntu on a test server and am getting an error when trying to check out.

Can't call method "status_line" on an undefined value at /usr/local/share/perl/5.10.1/Business/Shipping/RateRequest/Online.pm line 115.

if (!$response->is_success()) { $self->user_error("There was an error on the rate server: \"" . $self->response->status_line . "\". Please try again later"); $self->is_success(0); return; }

Please let me know if you need any more information to assist. Thank you!

Replies are listed 'Best First'.
Re: Business Shipping Module
by Your Mother (Archbishop) on Oct 28, 2011 at 15:07 UTC

    Casual read, it's a bug in the module:  $self->response->status_line should be  $response->status_line. It appears the code is corrected in its current CPAN version so updating would fix it. Though you might have to use a cpan(m|p) tool instead of a package manager to do so.