System error

error:  Can't call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 221.
context: 
... 
217:  my $ua = My::UserAgent->new;
218:  my $url = &get_backend() . '/component/rest/customized_sites/get_profile.html';
219:  my $res = $ua->post( $url,\%args);
220:  my $response;
221:  $response = $res->content();
222:  if (! $res->is_success) {
223:  die $response;
224:  }
225:  my $json_encoded = $response;
... 
code stack:  /opt/app/tradeindia/cw/modules/Website.pm:221
/opt/app/tradeindia/cw/modules/Website.pm:1310
/var/www/cw/marksorter.com/products_details.html:149
/opt/app/tradeindia/cw/components/common/default-dhandler.html:16
/var/www/cw/marksorter.com/dhandler.html:20
/var/www/cw/marksorter.com/dautohandler.html:19
/var/www/cw/marksorter.com/autohandler.html:582
/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 221.


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 221.^J') called at /opt/app/tradeindia/cw/modules/Website.pm line 221
Website::get_profile('Website=HASH(0x7f1b1131b250)') called at /opt/app/tradeindia/cw/modules/Website.pm line 1310
Website::output_metainfo('Website=HASH(0x7f1b1131b250)', 'product_obj', 'HASH(0x7f1b10fb71f8)') called at /var/www/cw/marksorter.com/products_details.html line 149
HTML::Mason::Commands::__ANON__('product_id', 2717088) called at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b112cc020)', 'product_id', 2717088) 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, 'product_id', 2717088) called at /opt/app/tradeindia/cw/components/common/default-dhandler.html line 16
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b110eede0)') 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/marksorter.com/dhandler.html line 20
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b10e995c0)') 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(0x7f1b112fda08)') called at /var/www/cw/marksorter.com/dautohandler.html line 19
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b101ccc98)') 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(0x7f1b112fda08)') called at /var/www/cw/marksorter.com/autohandler.html line 582
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f1b112135d8)') 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(0x7f1b112fda08)') 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(0x7f1b110e5b68)') 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(0x7f1b112fda08)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f1b112fda08)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f1b112ba898)', 'Apache2::RequestRec=SCALAR(0x7f1b11283b70)') 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(0x7f1b11283b70)') called at -e line 0
eval {...} at -e line 0