Suddenly yesterday (about 1pm UTC) my webapp pages started failing with an
exception
<type 'exceptions.TypeError'>: argument of type 'int' is not iterable
Traceback (most recent call last):
File
"/base/data/home/apps/margate-sands/2.350171889693325991/ajax/source.py",
line 230, in <module>
main()
File
"/base/data/home/apps/margate-sands/2.350171889693325991/ajax/source.py",
line 226, in main
run_wsgi_app(myapplication)
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 98, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 116, in run_bare_wsgi_app
result = application(env, _start_response)
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
line 719, in __call__
response.wsgi_write(start_response)
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
line 320, in wsgi_write
'\n' in value or '\r' in value):
which looks curiously related to
- Fixed an issue where HTTP headers could contain new line characters.
Has this gone live in production by any chance, and has it altered the way
headers are handled in the webapp framework ?
I used to assign some headers an int or long value
source.response.headers["X-mystats"] = counter
and they worked fine, but it looks like the webapp framework is checking
these for newlines WITHOUT converting them to strings first. I can try to
explicitly convert them to strings myself and see if that fixes it, but this
might bite quite a few people....
--
T
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.