a strange problem

19 views
Skip to first unread message

saintthor

unread,
Jul 16, 2011, 12:14:21 PM7/16/11
to google-a...@googlegroups.com
code as:
        rel = [0] * 3
        rel[0] = rela

rela is a instance.

run in dev_appserver, error shows:
=================================
 File "E:\djdq\2.py", line 20, in main run_wsgi_app(application) File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\util.py", line 98, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\util.py", line 116, in run_bare_wsgi_app result = application(env, _start_response) File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 721, in __call__ response.wsgi_write(start_response) File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 296, in wsgi_write body = self.out.getvalue() File "D:\Python25\lib\StringIO.py", line 270, in getvalue self.buf += ''.join(self.buflist) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 329: ordinal not in range(128)
=================================

when i update it to gae, at http://lt.djdqbbs.appspot.com/ltth, error occurs. but the error is not logged.  i can see nothing about the error in logs.

keakon lolicon

unread,
Jul 16, 2011, 1:30:54 PM7/16/11
to google-a...@googlegroups.com
There is an UnicodeDecodeError when call ''.join(self.buflist). You can decode each string in the buflist into unicode before join.

saintthor

unread,
Jul 17, 2011, 12:05:37 AM7/17/11
to Google App Engine
谢KK。现在已经找到BUG了。最大的问题是,在GAE上运行时提示错了,但出错时LOG里没有记录,直到今天才看到错误记录。
Reply all
Reply to author
Forward
0 new messages