<class 'django.utils.encoding.DjangoUnicodeDecodeError'> | Python 2.6.2: /usr/bin/python Wed Jun 17 21:07:09 2009 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/python-support/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x9b8a0cc>) |
556 """Runs the handler, flushes the streams, and ends the request.""" |
557 try: |
558 protocolStatus, appStatus = self.server.handler(self) |
559 except: |
560 traceback.print_exc(file=self.stderr) |
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object at 0x9b8a0cc>, self.server = <flup.server.fcgi_fork.WSGIServer object at 0x9b8188c>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi_fork.WSGIServer object at 0x9b8188c>> |
/var/lib/python-support/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi_fork.WSGIServer object at 0x9b8188c>, req=<flup.server.fcgi_base.Request object at 0x9b8a0cc>) |
1114 try: |
1115 try: |
1116 result = self.application(environ, start_response) |
1117 try: |
1118 for data in result: |
result = None, self = <flup.server.fcgi_fork.WSGIServer object at 0x9b8188c>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=bd51090fe79fbc6dce43ea51efd3866f', 'HTTP_HOST': '10.0.1.4', 'HTTP_KEEP_ALIVE': '300', ...}, start_response = <function start_response at 0x9b884c4> |
/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=bd51090fe79fbc6dce43ea51efd3866f', 'HTTP_HOST': '10.0.1.4', 'HTTP_KEEP_ALIVE': '300', ...}, start_response=<function start_response at 0x9b884c4>) |
237 response = http.HttpResponseBadRequest() |
238 else: |
239 response = self.get_response(request) |
240 |
241 # Apply response middleware |
response undefined, self = <django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, self.get_response = <bound method WSGIHandler.get_response of <djang...e.handlers.wsgi.WSGIHandler object at 0x9b8186c>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
126 exc_info = sys.exc_info() |
127 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
128 return self.handle_uncaught_exception(request, resolver, exc_info) |
129 |
130 def handle_uncaught_exception(self, request, resolver, exc_info): |
self = <django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...e.handlers.wsgi.WSGIHandler object at 0x9b8186c>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver core.urls ^/>, exc_info = (<class 'psycopg2.ProgrammingError'>, ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), <traceback object at 0x9cefb44>) |
/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver core.urls ^/>, exc_info=(<class 'psycopg2.ProgrammingError'>, ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), <traceback object at 0x9cefb44>)) |
146 if settings.DEBUG: |
147 from django.views import debug |
148 return debug.technical_500_response(request, *exc_info) |
149 |
150 # When DEBUG is False, send an error message to the admins. |
debug = <module 'django.views.debug' from '/usr/local/lib/python2.6/dist-packages/django/views/debug.pyc'>, debug.technical_500_response = <function technical_500_response at 0x9be3454>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_info = (<class 'psycopg2.ProgrammingError'>, ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), <traceback object at 0x9cefb44>) |
/usr/local/lib/python2.6/dist-packages/django/views/debug.py in technical_500_response(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_type=<class 'psycopg2.ProgrammingError'>, exc_value=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), tb=<traceback object at 0x9cefb44>) |
37 """ |
38 reporter = ExceptionReporter(request, exc_type, exc_value, tb) |
39 html = reporter.get_traceback_html() |
40 return HttpResponseServerError(html, mimetype='text/html') |
41 |
html undefined, reporter = <django.views.debug.ExceptionReporter instance at 0x9cf752c>, reporter.get_traceback_html = <bound method ExceptionReporter.get_traceback_ht...s.debug.ExceptionReporter instance at 0x9cf752c>> |
/usr/local/lib/python2.6/dist-packages/django/views/debug.py in get_traceback_html(self=<django.views.debug.ExceptionReporter instance at 0x9cf752c>) |
95 c = Context({ |
96 'exception_type': self.exc_type.__name__, |
97 'exception_value': smart_unicode(self.exc_value, errors='replace'), |
98 'unicode_hint': unicode_hint, |
99 'frames': frames, |
global smart_unicode = <function smart_unicode at 0xb7d4509c>, self = <django.views.debug.ExceptionReporter instance at 0x9cf752c>, self.exc_value = ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), errors undefined |
/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py in smart_unicode(s=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), encoding='utf-8', strings_only=False, errors='replace') |
33 # The input is the result of a gettext_lazy() call. |
34 return s |
35 return force_unicode(s, encoding, strings_only, errors) |
36 |
37 def force_unicode(s, encoding='utf-8', strings_only=False, errors='strict'): |
global force_unicode = <function force_unicode at 0xb7d3c6bc>, s = ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), encoding = 'utf-8', strings_only = False, errors = 'replace' |
/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py in force_unicode(s=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), encoding='utf-8', strings_only=False, errors='replace') |
68 s = s.decode(encoding, errors) |
69 except UnicodeDecodeError, e: |
70 raise DjangoUnicodeDecodeError(s, *e.args) |
71 return s |
72 |
global DjangoUnicodeDecodeError = <class 'django.utils.encoding.DjangoUnicodeDecodeError'>, s = ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), e = UnicodeDecodeError('ascii', '\xd0\x92\xd1\x8b\xd...8 ORDER BY\n', 0, 1, 'ordinal not in range(128)'), e.args = ('ascii', '\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f SELECT DISTINCT ON \xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd...\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8 \xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n', 0, 1, 'ordinal not in range(128)') |
<class 'django.utils.encoding.DjangoUnicodeDecodeError'>:
'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in
range(128). You passed in
ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f
SELECT DISTINCT ON \xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd\xd1\x8b
\xd1\x81\xd0\xbe\xd0\xb2\xd0\xbf\xd0\xb0\xd0\xb4\xd0\xb0\xd1\x82\xd1\x8c
\xd1\x81
\xd0\xb8\xd0\xb7\xd0\xbd\xd0\xb0\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8
\xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
ORDER BY\n',) (<class 'psycopg2.ProgrammingError'>)
args =
('ascii', '\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f SELECT DISTINCT ON \xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd...\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8 \xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n', 0, 1, 'ordinal not in range(128)')
encoding =
'ascii'
end =
1
message =
''
obj =
ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',)
object =
'\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f SELECT DISTINCT ON \xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd...\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8 \xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n'
reason =
'ordinal not in range(128)'
start =
0