Forums

Unhandled Exception

Since the last update Wednesday I've recevied an Unhandled Exception error for me app @ tlamanna42.pythonanywhere.com

I can't really get my head around the error log, but this is what I have:

2014-08-07 20:07:44,810 :Traceback (most recent call last):
2014-08-07 20:07:44,810 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-08-07 20:07:44,810 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-08-07 20:07:44,810 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-08-07 20:07:44,810 :    self.error(msg, *args, **kwargs)
2014-08-07 20:07:44,811 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-08-07 20:07:44,811 :    self._log(ERROR, msg, args, **kwargs)
2014-08-07 20:07:44,811 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-08-07 20:07:44,811 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-08-07 20:07:44,811 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-08-07 20:07:44,811 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-08-07 20:07:44,812 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-08-07 20:07:44,812 :    self.threadName = threading.current_thread().name
2014-08-07 20:07:44,812 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-08-07 20:07:44,812 :    return _active[_get_ident()]
2014-08-07 20:07:44,812 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-08-07 20:07:44,812 :    app_iterator = self.app(environ, start_response)
2014-08-07 20:07:44,812 :  File "/bin/user_wsgi_wrapper.py", line 73, in import_error_application
2014-08-07 20:07:44,812 :    raise e
2014-08-07 20:07:44,812 :urllib2.URLError: <urlopen error [Errno 111] Connection refused>

It looks like you're making a request to an external website. There are 2 possible issues here:

  1. We had an outage on our proxy server last night so that may have caused it. If you reload your web app and the problem goes away, then that was the cause.
  2. You're trying to access a site that is not on the whitelist for free accounts. We are happy to add sites to the whitelist if they have a public API and and may be useful to other free users.