jzempel/flask-exceptional — Issue #8: TypeError: <cStringIO...> is not JSON serializable
Author: jab
Created: 2011-10-25 03:15:54+00:00
State: open

Flask-exceptional is throwing the following error whenever it tries to post an exception:

```
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 174, in Handle
result = handler(self._environ, self._StartResponse)
File "packages/flask/app.py", line 1518, in __call__
return self.wsgi_app(environ, start_response)
File "packages/flask/app.py", line 1506, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "packages/flaskext/exceptional.py", line 142, in ret_val
self._post_data(context)
File "packages/flaskext/exceptional.py", line 184, in _post_data
"exception": self.__get_exception_data(traceback)
File "/base/python27_runtime/python27_dist/lib/python2.7/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/base/python27_runtime/python27_dist/lib/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/base/python27_runtime/python27_dist/lib/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)
File "/base/python27_runtime/python27_dist/lib/python2.7/json/encoder.py", line 178, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: is not JSON serializable
```

I am using the new python27 App Engine runtime.