500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 228, in __call__
    ct.params['charset'] = self.find_acceptable_charset()
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 142, in find_acceptable_charset
    if encoder(self.default_encoding):
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 86, in encode_string
    for chunk in self.body:
  File "/srv/enterprise_pics/src/controllers/pdf.py", line 24, in index
    pdf = Files.pdf.Pdf(company, url).generate()
  File "/srv/enterprise_pics/src/Files/pdf.py", line 36, in generate
    htmlObj = self._getDataObj()
  File "/srv/enterprise_pics/src/Files/pdf.py", line 50, in _getDataObj
    return urllib2.urlopen(self.url, None, 300) #hasson-1569: increased timeout to 5 minutes
  File "/usr/local/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/local/lib/python2.7/site-packages/newrelic-", line 118, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/local/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
Powered by CherryPy 3.2.5