System error

error:  Can't call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 222.
context: 
... 
218:  $ua->timeout(30);
219:  my $url = &get_backend() . '/component/rest/customized_sites/get_profile.html';
220:  my $res = $ua->post( $url,\%args);
221:  my $response;
222:  $response = $res->content();
223:  if (! $res->is_success) {
224:  die $response;
225:  }
226:  my $json_encoded = $response;
... 
code stack:  /opt/app/tradeindia/cw/modules/Website.pm:222
/var/www/cw/pushpajshah.com/global.html:3
/var/www/cw/pushpajshah.com/autohandler.html:4
/opt/app/tradeindia/cw/components/syshandler.html:77
raw error






























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


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "content" on an undefined value at /opt/app/tradeindia/cw/modules/Website.pm line 222.^J') called at /opt/app/tradeindia/cw/modules/Website.pm line 222
Website::get_profile('Website=HASH(0x5570e5bd9270)') called at /var/www/cw/pushpajshah.com/global.html line 3
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5570e5b52340)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /var/www/cw/pushpajshah.com/autohandler.html line 4
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5570e5bd8138)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x5570e5a99ed8)') called at /opt/app/tradeindia/cw/components/syshandler.html line 77
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5570e587b8b0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5570e5a99ed8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5570e5a99ed8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5570e5aa5908)', 'Apache2::RequestRec=SCALAR(0x5570e5be33c8)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 142
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 141
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x5570e5be33c8)') called at -e line 0
eval {...} at -e line 0