Cannot get run

Create issue
Issue #34 resolved
Manos Tsagkias created an issue

When I submit a run (regardless of a site), the endpoint (.../participant/feedback/(runid)/(qid)) that returns the submitted run returns an error:

#!python

Traceback (most recent call last):
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
   return self.wsgi_app(environ, start_response)
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
   response = self.make_response(self.handle_exception(e))
 File "/opt/python2.7/lib/python2.7/site-packages/flask_restful/__init__.py", line 257, in error_router
   return self.handle_error(e)
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
   response = self.full_dispatch_request()
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
   rv = self.handle_user_exception(e)
 File "/opt/python2.7/lib/python2.7/site-packages/flask_restful/__init__.py", line 257, in error_router
   return self.handle_error(e)
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
   rv = self.dispatch_request()
 File "/opt/python2.7/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
   return self.view_functions[rule.endpoint](**req.view_args)
 File "/opt/python2.7/lib/python2.7/site-packages/flask_restful/__init__.py", line 397, in wrapper
   resp = resource(*args, **kwargs)
 File "/opt/python2.7/lib/python2.7/site-packages/flask/views.py", line 84, in view
   return self.dispatch_request(*args, **kwargs)
 File "/opt/python2.7/lib/python2.7/site-packages/flask_restful/__init__.py", line 487, in dispatch_request
   resp = meth(*args, **kwargs)
 File "/home/living-labs/ll-challenge/ll/api/participant/run.py", line 63, in get
   run = self.trycall(core.run.get_run, key, qid)
AttributeError: 'module' object has no attribute 'get_run'

Comments (2)

  1. Log in to comment