System error

error:  Can't call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 243.
context: 
... 
239:  my $ua = My::UserAgent->new;
240:  my $url = &get_backend() . '/component/rest/customized_sites/get_catalog_categories.html';
241:  my $res = $ua->post( $url,\%args);
242:  my $response;
243:  $response = $res->content();
244:  if (! $res->is_success) {
245:  die $response;
246:  }
247:  my $json_encoded = $response;
... 
code stack:  /opt/app/tradeindia/cw/modules/Website.pm:243
/var/www/cw/sparepartsexport.com/category-product.html:23
/opt/app/tradeindia/cw/components/common/default-dhandler.html:12
/var/www/cw/sparepartsexport.com/dhandler.html:13
/var/www/cw/sparepartsexport.com/dautohandler.html:15
/var/www/cw/sparepartsexport.com/autohandler.html:367
/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 243.


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 243.^J') called at /opt/app/tradeindia/cw/modules/Website.pm line 243
Website::get_categories('Website=HASH(0x7f1b0ff0ba10)', 'p_category_id', 1566311, 'category_id', 786) called at /var/www/cw/sparepartsexport.com/category-product.html line 23
HTML::Mason::Commands::__ANON__('parent_p_category_id', 1566308, 'category_name', 'tractor-parts', 'p_category_id', 1566311, 'parent_p_category_name', 'massey-ferguson', 'category_id', 786) called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b1066fc80)', 'parent_p_category_id', 1566308, 'category_name', 'tractor-parts', 'p_category_id', 1566311, 'parent_p_category_name', 'massey-ferguson', 'category_id', 786) 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, 'parent_p_category_id', 1566308, 'category_name', 'tractor-parts', 'p_category_id', 1566311, 'parent_p_category_name', 'massey-ferguson', 'category_id', 786) called at /opt/app/tradeindia/cw/components/common/default-dhandler.html line 12
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b107299b0)') 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/sparepartsexport.com/dhandler.html line 13
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b0f9a6148)') 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) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f1b0ffb15d8)') called at /var/www/cw/sparepartsexport.com/dautohandler.html line 15
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b0eaa7570)') 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) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f1b0ffb15d8)') called at /var/www/cw/sparepartsexport.com/autohandler.html line 367
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b0ffa73a8)') 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) called at /usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f1b0ffb15d8)') called at /opt/app/tradeindia/cw/components/syshandler.html line 79
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b0ff2dd30)') 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) 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(0x7f1b0ffb15d8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1b0ffb15d8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f1b0ff077b8)', 'Apache2::RequestRec=SCALAR(0x7f1b0eaa7858)') 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(0x7f1b0eaa7858)') called at -e line 0
eval {...} at -e line 0