System error

error:  malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Server closed connec...") at /opt/app/tradeindia/cw/modules/Website.pm line 1348.
context: 
... 
1344:  my $url = &get_backend() . '/component/rest/customized_sites/get_catalog_meta_info.html';
1345:  my $res = $ua->post( $url,{product_id=>$product_id});
1346:  my $response;
1347:  $response = $res->{_content};
1348:  my $data = decode_json($response);
1349:  if($data){
1350:  my $data_resp = $data->{'data'};
1351:  $resp_title = $data_resp->{'title'} if($data_resp->{'title'});
1352:  $resp_keywords = $data_resp->{'keywords'} if($data_resp->{'keywords'});
... 
code stack:  /opt/app/tradeindia/cw/modules/Website.pm:1348
/var/www/cw/rsroaster.com/products_details.html:52
/opt/app/tradeindia/cw/components/common/default-dhandler.html:16
/var/www/cw/rsroaster.com/dhandler.html:17
/var/www/cw/rsroaster.com/dautohandler.html:19
/var/www/cw/rsroaster.com/autohandler.html:220
/opt/app/tradeindia/cw/components/syshandler.html:77
raw error






























malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Server closed connec...") at /opt/app/tradeindia/cw/modules/Website.pm line 1348.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Server closed connec...") at /opt/app/tradeindia/cw/modules/Website.pm line 1348.^J') called at /opt/app/tradeindia/cw/modules/Website.pm line 1348
Website::output_metainfo('Website=HASH(0x562804d5e3c0)', 'product_obj', 'HASH(0x562804ce1920)') called at /var/www/cw/rsroaster.com/products_details.html line 52
HTML::Mason::Commands::__ANON__('product_id', 1249665) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x562804e81928)', 'product_id', 1249665) 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, 'product_id', 1249665) 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 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x56280496efd0)') 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/rsroaster.com/dhandler.html line 17
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x56280496fdb0)') 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(0x562804d6ebd8)') called at /var/www/cw/rsroaster.com/dautohandler.html line 19
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5628047e14c8)') 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(0x562804d6ebd8)') called at /var/www/cw/rsroaster.com/autohandler.html line 220
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x56280487ea50)') 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(0x562804d6ebd8)') 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(0x562804a10e18)') 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(0x562804d6ebd8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x562804d6ebd8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x562803bd23f8)', 'Apache2::RequestRec=SCALAR(0x56280478a7f0)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 132
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 131
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x56280478a7f0)') called at -e line 0
eval {...} at -e line 0