Ticket #11334: flup_stack_trace.html

File flup_stack_trace.html, 23.8 KB (added by Loststylus, 15 years ago)

Flup stack trace for the django's debug system unicode decode error

Line 
1<html><head>
2<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body bgcolor="#f0f0f8">
3<table summary="heading" border="0" cellpadding="2" cellspacing="0" width="100%">
4<tbody><tr bgcolor="#6622aa">
5<td valign="bottom">&nbsp;<br>
6<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>&lt;class 'django.utils.encoding.DjangoUnicodeDecodeError'&gt;</strong></big></big></font></td><td align="right" valign="bottom"><font color="#ffffff" face="helvetica, arial">Python 2.6.2: /usr/bin/python<br>Wed Jun 17 21:07:09 2009</font></td></tr></tbody></table>
7
8<p>A problem occurred in a Python script. Here is the sequence of
9function calls leading up to the error, in the order they occurred.</p>
10<table border="0" cellpadding="0" cellspacing="0" width="100%">
11<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/lib/python-support/python2.6/flup/server/fcgi_base.py">/var/lib/python-support/python2.6/flup/server/fcgi_base.py</a> in <strong>run</strong>(self=&lt;flup.server.fcgi_base.Request object at 0x9b8a0cc&gt;)</td></tr>
12<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;556</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""Runs&nbsp;the&nbsp;handler,&nbsp;flushes&nbsp;the&nbsp;streams,&nbsp;and&nbsp;ends&nbsp;the&nbsp;request."""<br>
13</tt></font></td></tr>
14<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;557</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
15</tt></font></td></tr>
16<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;558</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocolStatus,&nbsp;appStatus&nbsp;=&nbsp;self.server.handler(self)<br>
17</tt></td></tr>
18<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;559</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;except:<br>
19</tt></font></td></tr>
20<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;560</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;traceback.print_exc(file=self.stderr)<br>
21</tt></font></td></tr>
22<tr><td><small><font color="#909090">protocolStatus <em>undefined</em>, appStatus <em>undefined</em>, <strong>self</strong>&nbsp;= &lt;flup.server.fcgi_base.Request object at 0x9b8a0cc&gt;, self.<strong>server</strong>&nbsp;= &lt;flup.server.fcgi_fork.WSGIServer object at 0x9b8188c&gt;, self.server.<strong>handler</strong>&nbsp;= &lt;bound method WSGIServer.handler of &lt;flup.server.fcgi_fork.WSGIServer object at 0x9b8188c&gt;&gt;</font></small></td></tr></tbody></table>
23<table border="0" cellpadding="0" cellspacing="0" width="100%">
24<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///var/lib/python-support/python2.6/flup/server/fcgi_base.py">/var/lib/python-support/python2.6/flup/server/fcgi_base.py</a> in <strong>handler</strong>(self=&lt;flup.server.fcgi_fork.WSGIServer
25object at 0x9b8188c&gt;, req=&lt;flup.server.fcgi_base.Request object
26at 0x9b8a0cc&gt;)</td></tr>
27<tr><td><font color="#909090"><tt><small>&nbsp;1114</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
28</tt></font></td></tr>
29<tr><td><font color="#909090"><tt><small>&nbsp;1115</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
30</tt></font></td></tr>
31<tr><td bgcolor="#ffccee"><tt><small>&nbsp;1116</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;self.application(environ,&nbsp;start_response)<br>
32</tt></td></tr>
33<tr><td><font color="#909090"><tt><small>&nbsp;1117</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
34</tt></font></td></tr>
35<tr><td><font color="#909090"><tt><small>&nbsp;1118</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;data&nbsp;in&nbsp;result:<br>
36</tt></font></td></tr>
37<tr><td><small><font color="#909090"><strong>result</strong>&nbsp;= None, <strong>self</strong>&nbsp;= &lt;flup.server.fcgi_fork.WSGIServer object at 0x9b8188c&gt;, self.<strong>application</strong>&nbsp;= &lt;django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;, <strong>environ</strong>&nbsp;=
38{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT':
39'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
40'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7',
41'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
42'ru,en-us;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
43'HTTP_COOKIE': 'sessionid=bd51090fe79fbc6dce43ea51efd3866f',
44'HTTP_HOST': '10.0.1.4', 'HTTP_KEEP_ALIVE': '300', ...}, <strong>start_response</strong>&nbsp;= &lt;function start_response at 0x9b884c4&gt;</font></small></td></tr></tbody></table>
45<table border="0" cellpadding="0" cellspacing="0" width="100%">
46<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py">/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py</a> in <strong>__call__</strong>(self=&lt;django.core.handlers.wsgi.WSGIHandler
47object at 0x9b8186c&gt;, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE':
48'', 'HTTP_ACCEPT':
49'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
50'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7',
51'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
52'ru,en-us;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive',
53'HTTP_COOKIE': 'sessionid=bd51090fe79fbc6dce43ea51efd3866f',
54'HTTP_HOST': '10.0.1.4', 'HTTP_KEEP_ALIVE': '300', ...},
55start_response=&lt;function start_response at 0x9b884c4&gt;)</td></tr>
56<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;237</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response&nbsp;=&nbsp;http.HttpResponseBadRequest()<br>
57</tt></font></td></tr>
58<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;238</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>
59</tt></font></td></tr>
60<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;239</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response&nbsp;=&nbsp;self.get_response(request)<br>
61</tt></td></tr>
62<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;240</small>&nbsp;<br>
63</tt></font></td></tr>
64<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;241</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Apply&nbsp;response&nbsp;middleware<br>
65</tt></font></td></tr>
66<tr><td><small><font color="#909090">response <em>undefined</em>, <strong>self</strong>&nbsp;= &lt;django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;, self.<strong>get_response</strong>&nbsp;= &lt;bound method WSGIHandler.get_response of &lt;djang...e.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;&gt;, <strong>request</strong>&nbsp;= &lt;WSGIRequest
67GET:&lt;QueryDict: {}&gt;,
68POST:&lt;QueryDic...gi.url_scheme': 'http',
69 'wsgi.version': (1, 0)}&gt;</font></small></td></tr></tbody></table>
70<table border="0" cellpadding="0" cellspacing="0" width="100%">
71<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py">/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py</a> in <strong>get_response</strong>(self=&lt;django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;, request=&lt;WSGIRequest
72GET:&lt;QueryDict: {}&gt;,
73POST:&lt;QueryDic...gi.url_scheme': 'http',
74 'wsgi.version': (1, 0)}&gt;)</td></tr>
75<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;126</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exc_info&nbsp;=&nbsp;sys.exc_info()<br>
76</tt></font></td></tr>
77<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;127</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;receivers&nbsp;=&nbsp;signals.got_request_exception.send(sender=self.__class__,&nbsp;request=request)<br>
78</tt></font></td></tr>
79<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;128</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self.handle_uncaught_exception(request,&nbsp;resolver,&nbsp;exc_info)<br>
80</tt></td></tr>
81<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;129</small>&nbsp;<br>
82</tt></font></td></tr>
83<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;130</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;handle_uncaught_exception(self,&nbsp;request,&nbsp;resolver,&nbsp;exc_info):<br>
84</tt></font></td></tr>
85<tr><td><small><font color="#909090"><strong>self</strong>&nbsp;= &lt;django.core.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;, self.<strong>handle_uncaught_exception</strong>&nbsp;= &lt;bound method WSGIHandler.handle_uncaught_except...e.handlers.wsgi.WSGIHandler object at 0x9b8186c&gt;&gt;, <strong>request</strong>&nbsp;= &lt;WSGIRequest
86GET:&lt;QueryDict: {}&gt;,
87POST:&lt;QueryDic...gi.url_scheme': 'http',
88 'wsgi.version': (1, 0)}&gt;, <strong>resolver</strong>&nbsp;= &lt;RegexURLResolver core.urls ^/&gt;, <strong>exc_info</strong>&nbsp;=
89(&lt;class 'psycopg2.ProgrammingError'&gt;,
90ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
91ORDER BY\n',), &lt;traceback object at 0x9cefb44&gt;)</font></small></td></tr></tbody></table>
92<table border="0" cellpadding="0" cellspacing="0" width="100%">
93<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py">/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py</a> in <strong>handle_uncaught_exception</strong>(self=&lt;django.core.handlers.wsgi.WSGIHandler
94object at 0x9b8186c&gt;, request=&lt;WSGIRequest
95GET:&lt;QueryDict: {}&gt;,
96POST:&lt;QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1,
970)}&gt;, resolver=&lt;RegexURLResolver core.urls ^/&gt;,
98exc_info=(&lt;class 'psycopg2.ProgrammingError'&gt;,
99ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
100ORDER BY\n',), &lt;traceback object at 0x9cefb44&gt;))</td></tr>
101<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;146</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;settings.DEBUG:<br>
102</tt></font></td></tr>
103<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;147</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;django.views&nbsp;import&nbsp;debug<br>
104</tt></font></td></tr>
105<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;148</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;debug.technical_500_response(request,&nbsp;*exc_info)<br>
106</tt></td></tr>
107<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;149</small>&nbsp;<br>
108</tt></font></td></tr>
109<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;150</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;When&nbsp;DEBUG&nbsp;is&nbsp;False,&nbsp;send&nbsp;an&nbsp;error&nbsp;message&nbsp;to&nbsp;the&nbsp;admins.<br>
110</tt></font></td></tr>
111<tr><td><small><font color="#909090"><strong>debug</strong>&nbsp;= &lt;module 'django.views.debug' from '/usr/local/lib/python2.6/dist-packages/django/views/debug.pyc'&gt;, debug.<strong>technical_500_response</strong>&nbsp;= &lt;function technical_500_response at 0x9be3454&gt;, <strong>request</strong>&nbsp;= &lt;WSGIRequest
112GET:&lt;QueryDict: {}&gt;,
113POST:&lt;QueryDic...gi.url_scheme': 'http',
114 'wsgi.version': (1, 0)}&gt;, <strong>exc_info</strong>&nbsp;=
115(&lt;class 'psycopg2.ProgrammingError'&gt;,
116ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
117ORDER BY\n',), &lt;traceback object at 0x9cefb44&gt;)</font></small></td></tr></tbody></table>
118<table border="0" cellpadding="0" cellspacing="0" width="100%">
119<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/views/debug.py">/usr/local/lib/python2.6/dist-packages/django/views/debug.py</a> in <strong>technical_500_response</strong>(request=&lt;WSGIRequest
120GET:&lt;QueryDict:
121{}&gt;,
122POST:&lt;QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1,
1230)}&gt;, exc_type=&lt;class 'psycopg2.ProgrammingError'&gt;,
124exc_value=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
125ORDER BY\n',), tb=&lt;traceback object at 0x9cefb44&gt;)</td></tr>
126<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;37</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""<br>
127</tt></font></td></tr>
128<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;38</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reporter&nbsp;=&nbsp;ExceptionReporter(request,&nbsp;exc_type,&nbsp;exc_value,&nbsp;tb)<br>
129</tt></font></td></tr>
130<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;39</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html&nbsp;=&nbsp;reporter.get_traceback_html()<br>
131</tt></td></tr>
132<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;40</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;HttpResponseServerError(html,&nbsp;mimetype='text/html')<br>
133</tt></font></td></tr>
134<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;41</small>&nbsp;<br>
135</tt></font></td></tr>
136<tr><td><small><font color="#909090">html <em>undefined</em>, <strong>reporter</strong>&nbsp;= &lt;django.views.debug.ExceptionReporter instance at 0x9cf752c&gt;, reporter.<strong>get_traceback_html</strong>&nbsp;= &lt;bound method ExceptionReporter.get_traceback_ht...s.debug.ExceptionReporter instance at 0x9cf752c&gt;&gt;</font></small></td></tr></tbody></table>
137<table border="0" cellpadding="0" cellspacing="0" width="100%">
138<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/views/debug.py">/usr/local/lib/python2.6/dist-packages/django/views/debug.py</a> in <strong>get_traceback_html</strong>(self=&lt;django.views.debug.ExceptionReporter instance at 0x9cf752c&gt;)</td></tr>
139<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;95</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c&nbsp;=&nbsp;Context({<br>
140</tt></font></td></tr>
141<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;96</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'exception_type':&nbsp;self.exc_type.__name__,<br>
142</tt></font></td></tr>
143<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;97</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'exception_value':&nbsp;smart_unicode(self.exc_value,&nbsp;errors='replace'),<br>
144</tt></td></tr>
145<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;98</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'unicode_hint':&nbsp;unicode_hint,<br>
146</tt></font></td></tr>
147<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;99</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'frames':&nbsp;frames,<br>
148</tt></font></td></tr>
149<tr><td><small><font color="#909090"><em>global</em> <strong>smart_unicode</strong>&nbsp;= &lt;function smart_unicode at 0xb7d4509c&gt;, <strong>self</strong>&nbsp;= &lt;django.views.debug.ExceptionReporter instance at 0x9cf752c&gt;, self.<strong>exc_value</strong>&nbsp;= ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), errors <em>undefined</em></font></small></td></tr></tbody></table>
150<table border="0" cellpadding="0" cellspacing="0" width="100%">
151<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/utils/encoding.py">/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py</a> in <strong>smart_unicode</strong>(s=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
152ORDER BY\n',), encoding='utf-8', strings_only=False, errors='replace')</td></tr>
153<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;33</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;The&nbsp;input&nbsp;is&nbsp;the&nbsp;result&nbsp;of&nbsp;a&nbsp;gettext_lazy()&nbsp;call.<br>
154</tt></font></td></tr>
155<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;34</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;s<br>
156</tt></font></td></tr>
157<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;35</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;force_unicode(s,&nbsp;encoding,&nbsp;strings_only,&nbsp;errors)<br>
158</tt></td></tr>
159<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;36</small>&nbsp;<br>
160</tt></font></td></tr>
161<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;37</small>&nbsp;def&nbsp;force_unicode(s,&nbsp;encoding='utf-8',&nbsp;strings_only=False,&nbsp;errors='strict'):<br>
162</tt></font></td></tr>
163<tr><td><small><font color="#909090"><em>global</em> <strong>force_unicode</strong>&nbsp;= &lt;function force_unicode at 0xb7d3c6bc&gt;, <strong>s</strong>&nbsp;= ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), <strong>encoding</strong>&nbsp;= 'utf-8', <strong>strings_only</strong>&nbsp;= False, <strong>errors</strong>&nbsp;= 'replace'</font></small></td></tr></tbody></table>
164<table border="0" cellpadding="0" cellspacing="0" width="100%">
165<tbody><tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.6/dist-packages/django/utils/encoding.py">/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py</a> in <strong>force_unicode</strong>(s=ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
166ORDER BY\n',), encoding='utf-8', strings_only=False, errors='replace')</td></tr>
167<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;68</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s&nbsp;=&nbsp;s.decode(encoding,&nbsp;errors)<br>
168</tt></font></td></tr>
169<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;69</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;except&nbsp;UnicodeDecodeError,&nbsp;e:<br>
170</tt></font></td></tr>
171<tr><td bgcolor="#ffccee"><tt><small>&nbsp;&nbsp;&nbsp;70</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raise&nbsp;DjangoUnicodeDecodeError(s,&nbsp;*e.args)<br>
172</tt></td></tr>
173<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;71</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;s<br>
174</tt></font></td></tr>
175<tr><td><font color="#909090"><tt><small>&nbsp;&nbsp;&nbsp;72</small>&nbsp;<br>
176</tt></font></td></tr>
177<tr><td><small><font color="#909090"><em>global</em> <strong>DjangoUnicodeDecodeError</strong>&nbsp;= &lt;class 'django.utils.encoding.DjangoUnicodeDecodeError'&gt;, <strong>s</strong>&nbsp;= ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',), <strong>e</strong>&nbsp;= UnicodeDecodeError('ascii', '\xd0\x92\xd1\x8b\xd...8 ORDER BY\n', 0, 1, 'ordinal not in range(128)'), e.<strong>args</strong>&nbsp;= ('ascii', '<font color="#c040c0">\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f</font> SELECT DISTINCT ON <font color="#c040c0">\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd</font>...<font color="#c040c0">\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8</font> <font color="#c040c0">\xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8</font> ORDER BY<font color="#c040c0">\n</font>', 0, 1, 'ordinal not in range(128)')</font></small></td></tr></tbody></table><p><strong>&lt;class 'django.utils.encoding.DjangoUnicodeDecodeError'&gt;</strong>:
178'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in
179range(128). You passed in
180ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f
181SELECT DISTINCT ON \xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd\xd1\x8b
182\xd1\x81\xd0\xbe\xd0\xb2\xd0\xbf\xd0\xb0\xd0\xb4\xd0\xb0\xd1\x82\xd1\x8c
183\xd1\x81
184\xd0\xb8\xd0\xb7\xd0\xbd\xd0\xb0\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8
185\xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8
186ORDER BY\n',) (&lt;class 'psycopg2.ProgrammingError'&gt;)
187<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>args&nbsp;=
188('ascii', '<font color="#c040c0">\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f</font> SELECT DISTINCT ON <font color="#c040c0">\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd</font>...<font color="#c040c0">\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8</font> <font color="#c040c0">\xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8</font> ORDER BY<font color="#c040c0">\n</font>', 0, 1, 'ordinal not in range(128)')
189<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>encoding&nbsp;=
190'ascii'
191<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>end&nbsp;=
1921
193<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>message&nbsp;=
194''
195<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>obj&nbsp;=
196ProgrammingError('\xd0\x92\xd1\x8b\xd1\x80\xd0\x...xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8 ORDER BY\n',)
197<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>object&nbsp;=
198'<font color="#c040c0">\xd0\x92\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f</font> SELECT DISTINCT ON <font color="#c040c0">\xd0\xb4\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xbd</font>...<font color="#c040c0">\xd1\x87\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd1\x8b\xd0\xbc\xd0\xb8</font> <font color="#c040c0">\xd0\xb2\xd1\x8b\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\xd0\xbc\xd0\xb8</font> ORDER BY<font color="#c040c0">\n</font>'
199<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>reason&nbsp;=
200'ordinal not in range(128)'
201<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>start&nbsp;=
2020
203
204
205<!-- The above is a description of an error in a Python program, formatted
206 for a Web browser because the 'cgitb' module was enabled. In case you
207 are not reading this in a Web browser, here is the original traceback:
208
209Traceback (most recent call last):
210 File "/var/lib/python-support/python2.6/flup/server/fcgi_base.py", line 558, in run
211 protocolStatus, appStatus = self.server.handler(self)
212 File "/var/lib/python-support/python2.6/flup/server/fcgi_base.py", line 1116, in handler
213 result = self.application(environ, start_response)
214 File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 239, in __call__
215 response = self.get_response(request)
216 File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 128, in get_response
217 return self.handle_uncaught_exception(request, resolver, exc_info)
218 File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 148, in handle_uncaught_exception
219 return debug.technical_500_response(request, *exc_info)
220 File "/usr/local/lib/python2.6/dist-packages/django/views/debug.py", line 39, in technical_500_response
221 html = reporter.get_traceback_html()
222 File "/usr/local/lib/python2.6/dist-packages/django/views/debug.py", line 97, in get_traceback_html
223 'exception_value': smart_unicode(self.exc_value, errors='replace'),
224 File "/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py", line 35, in smart_unicode
225 return force_unicode(s, encoding, strings_only, errors)
226 File "/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py", line 70, in force_unicode
227 raise DjangoUnicodeDecodeError(s, *e.args)
228DjangoUnicodeDecodeError: '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',) (&lt;class 'psycopg2.ProgrammingError'&gt;)
229
230-->
231</p></body></html>
Back to Top