On Thu, 2014-03-20 at 14:56 +0100, Miroslav Suchý wrote:
On 03/20/2014 02:18 PM, Igor Gnatenko wrote:
> Thank you for fix. Sorry about this issue( will more check in the future my
commits.
You still have chance to fix it :)
Even with Richard fix I'm getting:
[Thu Mar 20 13:49:22.890879 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
Traceback (most recent call last):
[Thu Mar 20 13:49:22.890950 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1701, in __call__
[Thu Mar 20 13:49:22.891382 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
return self.wsgi_app(environ,
start_response)
[Thu Mar 20 13:49:22.891436 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app
[Thu Mar 20 13:49:22.891514 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
response =
self.make_response(self.handle_exception(e))
[Thu Mar 20 13:49:22.891571 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
[Thu Mar 20 13:49:22.891666 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
response = self.full_dispatch_request()
[Thu Mar 20 13:49:22.891724 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in
full_dispatch_request
[Thu Mar 20 13:49:22.891818 2014] [:error] [pid 5378] [remote 209.132.186.34:68] rv =
self.handle_user_exception(e)
[Thu Mar 20 13:49:22.891879 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in
full_dispatch_request
[Thu Mar 20 13:49:22.891953 2014] [:error] [pid 5378] [remote 209.132.186.34:68] rv =
self.dispatch_request()
[Thu Mar 20 13:49:22.892010 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in
dispatch_request
[Thu Mar 20 13:49:22.892084 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
return
self.view_functions[rule.endpoint](**req.view_args)
[Thu Mar 20 13:49:22.892141 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/share/copr/coprs_frontend/coprs/views/api_ns/api_general.py", line 416,
in api_coprs_search_by_project
[Thu Mar 20 13:49:22.892334 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
jsonout = flask.jsonify(output)
[Thu Mar 20 13:49:22.892390 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib/python2.7/site-packages/flask/helpers.py", line 198, in jsonify
[Thu Mar 20 13:49:22.892671 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
indent=None if request.is_xhr else
2), mimetype='application/json')
[Thu Mar 20 13:49:22.892725 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/__init__.py", line 250, in dumps
[Thu Mar 20 13:49:22.892935 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
sort_keys=sort_keys, **kw).encode(obj)
[Thu Mar 20 13:49:22.892990 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 209, in encode
[Thu Mar 20 13:49:22.893183 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
chunks = list(chunks)
[Thu Mar 20 13:49:22.893236 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 434, in _iterencode
[Thu Mar 20 13:49:22.893310 2014] [:error] [pid 5378] [remote 209.132.186.34:68] for
chunk in _iterencode_dict(o,
_current_indent_level):
[Thu Mar 20 13:49:22.893369 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 408, in _iterencode_dict
[Thu Mar 20 13:49:22.893441 2014] [:error] [pid 5378] [remote 209.132.186.34:68] for
chunk in chunks:
[Thu Mar 20 13:49:22.893497 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 332, in _iterencode_list
[Thu Mar 20 13:49:22.893568 2014] [:error] [pid 5378] [remote 209.132.186.34:68] for
chunk in chunks:
[Thu Mar 20 13:49:22.893632 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 408, in _iterencode_dict
[Thu Mar 20 13:49:22.893703 2014] [:error] [pid 5378] [remote 209.132.186.34:68] for
chunk in chunks:
[Thu Mar 20 13:49:22.893760 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 442, in _iterencode
[Thu Mar 20 13:49:22.893855 2014] [:error] [pid 5378] [remote 209.132.186.34:68] o =
_default(o)
[Thu Mar 20 13:49:22.893916 2014] [:error] [pid 5378] [remote 209.132.186.34:68] File
"/usr/lib64/python2.7/json/encoder.py", line 184, in default
[Thu Mar 20 13:49:22.893991 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
raise TypeError(repr(o) + " is not
JSON serializable")
[Thu Mar 20 13:49:22.894061 2014] [:error] [pid 5378] [remote 209.132.186.34:68]
TypeError: <coprs.models.User object at
0x7f7544056a90> is not JSON serializable
I would guess that "repo.owner" is the cause. I will leave rest to you :)
That's strange. Unfortunately I can't take a look on this week. I'll
take a look at monday.
--
-Igor Gnatenko