System error

error:  Can't call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 101.
context: 
... 
97:  my $ua = My::UserAgent->new;
98:  my $url = &get_backend() . '/component/rest/customized_sites/get_catalog.html';
99:  my $res = $ua->post( $url,$args);
100:  my $response;
101:  $response = $res->content();
102:  if (! $res->is_success) {
103:  die $response;
104:  }
105:  my $json_encoded = $response;
... 
code stack:  /opt/app/tradeindia/cw/modules/Website.pm:101
/opt/app/tradeindia/cw/modules/Website.pm:70
/var/www/cw/panchalpumps.net/global.html:2
/var/www/cw/panchalpumps.net/autohandler.html:5
/opt/app/tradeindia/cw/components/syshandler.html:79
raw error






























Can't call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 101.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 101.^J') called at /opt/app/tradeindia/cw/modules/Website.pm line 101
Website::_get_catalog('Website', 'HASH(0x7f249fc0e2c0)') called at /opt/app/tradeindia/cw/modules/Website.pm line 70
Website::new('Website', 'catalog_id', 79411, 'r', 'Apache2::RequestRec=SCALAR(0x7f249e0c8d10)', 'per_page', 8) called at /var/www/cw/panchalpumps.net/global.html line 2
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f249f893380)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef) called at /var/www/cw/panchalpumps.net/autohandler.html line 5
HTML::Mason::Commands::__ANON__('subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f249fc0ce88)', 'subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f249fc0c588)') called at /opt/app/tradeindia/cw/components/syshandler.html line 79
HTML::Mason::Commands::__ANON__('subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f249f86d580)', 'subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Request.pm line 1303
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'subject', 'Inquiry for Grout Pumps') called at /usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f249fc0c588)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f249fc0c588)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f249fb38f88)', 'Apache2::RequestRec=SCALAR(0x7f249e0c8d10)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 88
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 87
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x7f249e0c8d10)') called at -e line 0
eval {...} at -e line 0