System error

error:  <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
context: 
... 
601:  my $res = $ua->post( $url,\%args);
602:  my $response;
603:  $response = $res->content();
604:  if (! $res->is_success) {
605:  die $response;
606:  }
607:  my $json_encoded = $response;
608:  $data = decode_json($json_encoded) || [];
609:  $memd->set($mem_key , $data , $memd_ttl) if($memd_enabled);
... 
code stack:  /opt/masonapache/lib/perl_lib/Website.pm:605
/var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/category-product.html:388
/var/www/virtual/joomla.trade-india-local.com/htdocs/cw-components/common/default-dhandler.html:22
/var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/dhandler.html:4
/var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/dautohandler.html:19
/var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/autohandler.html:246
/var/www/virtual/joomla.trade-india-local.com/htdocs/syshandler.html:80
raw error






























<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('<html>^M^J<head><title>502 Bad Gateway</title></head>^M^J<body>^M^J<center><h1>502 Bad Gateway</h1></center>^M^J<hr><center>nginx</center>^M^J</body>^M^J</html>^M^J') called at /opt/masonapache/lib/perl_lib/Website.pm line 605
Website::get_products('Website=HASH(0x931b010)', 'p_category_id', 586046) called at /var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/category-product.html line 388
HTML::Mason::Commands::__ANON__('parent_p_category_id', undef, 'p_category_id', 586049, 'category_id', 223, 'parent_p_category_name', '', 'category_name', 'pigments') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x95b83a0)', 'parent_p_category_id', undef, 'p_category_id', 586049, 'category_id', 223, 'parent_p_category_name', '', 'category_name', 'pigments') called at /usr/share/perl5/HTML/Mason/Request.pm line 1278
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef, 'parent_p_category_id', undef, 'p_category_id', 586049, 'category_id', 223, 'parent_p_category_name', '', 'category_name', 'pigments') called at /var/www/virtual/joomla.trade-india-local.com/htdocs/cw-components/common/default-dhandler.html line 22
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x95a3968)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1278
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef) called at /var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/dhandler.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(0x9293ec8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1278
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 937
HTML::Mason::Request::call_next('HTML::Mason::Request::CGI=HASH(0x9293fe8)') called at /var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.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(0x9295c98)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1278
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 937
HTML::Mason::Request::call_next('HTML::Mason::Request::CGI=HASH(0x9293fe8)') called at /var/www/virtual/joomla.trade-india-local.com/htdocs/holicolor.com/autohandler.html line 246
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x92c7a20)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1278
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 937
HTML::Mason::Request::call_next('HTML::Mason::Request::CGI=HASH(0x9293fe8)') called at /var/www/virtual/joomla.trade-india-local.com/htdocs/syshandler.html line 80
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x930f570)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1273
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1268
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 467
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 467
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 419
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0x9293fe8)') called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 193
eval {...} at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 193
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0x9293fe8)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 122
eval {...} at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 122
HTML::Mason::CGIHandler::_handler('My::CGIHandler=HASH(0x928af60)', 'HASH(0x8d3d928)') called at /usr/share/perl5/HTML/Mason/CGIHandler.pm line 63
HTML::Mason::CGIHandler::handle_request('My::CGIHandler=HASH(0x928af60)') called at /opt/masonapache/lib/perl_lib/Website.pm line 1794
eval {...} at /opt/masonapache/lib/perl_lib/Website.pm line 1793
My::CGIHandler::handle_request('My::CGIHandler=HASH(0x928af60)') called at mason_handler.cgi line 22