API search doesn't work

Miroslav Suchý msuchy at redhat.com
Thu Mar 20 09:59:15 UTC 2014


On 03/20/2014 10:40 AM, Igor Gnatenko wrote:
> Hi,
>
> I've implemented search API, but it doesn't work.. Miroslav, you deployed to production.. Could you take a look why it
> doesn't work?
>

I got this traceback:
Message type:       ERROR
Location:           /usr/lib/python2.7/site-packages/flask/app.py:1306
Module:             app
Function:           log_exception
Time:               2014-03-20 09:37:44,754

Message:

Exception on /api/coprs/search/tests/ [GET]
Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
     response = self.full_dispatch_request()
   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
     rv = self.handle_user_exception(e)
   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
     rv = self.dispatch_request()
   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
     return self.view_functions[rule.endpoint](**req.view_args)
   File "/usr/share/copr/coprs_frontend/coprs/views/api_ns/api_general.py", line 409, in api_coprs_search_by_project
     output["repos"].append({"username": repo.owner,
KeyError: 'repos'


I will have no time this week to investigate, but if you will not fix it within one week I will check it.

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the copr-devel mailing list