question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when attempting to view Coach Exam Reports

See original GitHub issue

Observed behavior

On my instance, go to view exam report at

http://localhost:8000/coach/#/df6308209356328f726a09aa9bd323b7/5d132ba360b54b2ba9df169ffaa43ccb/exams/77d87e49c67c4ff9ac96bc543d836f4f

Get this TypeError (TypeError: filter_collection() takes exactly 3 arguments (4 given))

ERROR    Internal Server Error: /api/examlog/
Traceback (most recent call last):
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/viewsets.py", line 90, in view
    return self.dispatch(request, *args, **kwargs)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 489, in dispatch
    response = self.handle_exception(exc)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 449, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 486, in dispatch
    response = handler(request, *args, **kwargs)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/mixins.py", line 40, in list
    queryset = self.filter_queryset(self.get_queryset())
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/generics.py", line 152, in filter_queryset
    queryset = backend().filter_queryset(self.request, queryset, self)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/rest_framework/backends.py", line 54, in filter_queryset
    return filter_class(request.query_params, queryset=queryset, request=request).qs
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/rest_framework/filterset.py", line 50, in qs
    return super(FilterSet, self).qs
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/filterset.py", line 220, in qs
    qs = filter_.filter(qs, value)
  File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/filters.py", line 713, in __call__
    return self.method(qs, self.f.field_name, value)
TypeError: filter_collection() takes exactly 3 arguments (4 given)
ERROR    "GET /api/examlog/?exam=77d87e49c67c4ff9ac96bc543d836f4f&collection=df6308209356328f726a09aa9bd323b7&1515535689923=1515535689923 HTTP/1.1" 500 30882

Expected behavior

No Error. Exam report shows up.

User-facing consequences

User not able to view Exam reports.

Errors and logs

See description

Steps to reproduce

  1. Create and activate an Exam
  2. Try to view report for the exam. (My classroom has 2 learners. One Learner submitted an attempt).
  3. Get error

Context

  • Kolibri version: develop
  • Operating system: mac
  • Browser: chrome

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jonboisercommented, Jan 12, 2018

I think the DRF API is a different thing entirely, having to do with the Django App settings. I will write up a separate issue for it, after I find some of the affected endpoints.

0reactions
jonboisercommented, Feb 2, 2018

Should be fixed by #3147

Read more comments on GitHub >

github_iconTop Results From Across the Web

BINDING A MAP TO A COACH VIEW RESULTS IN ERROR
When trying to create a Coach View with a business data variable of type map, the following error occurs when binding a map...
Read more >
Credentials Archives - International Coaching Federation
Coaching supervisor must hold an active coaching supervision certification, credential or accreditation by a coaching or coaching supervision professional body; ...
Read more >
Coaching Actuaries Support
What do I do if I get an error message at checkout? Why is my credit card being blocked when I try to...
Read more >
OPTAVIA App | U.S. COACH ANSWERS
The OPTAVIA App is a one-stop resource for OPTAVIA Coaches and Clients seeking Lean & Green recipes, self-service options related to OPTAVIA ...
Read more >
Getting started with Reading Progress in Teams
To view the words the student practiced with Reading Coach, select Practiced words. Attempts shows how many times the student practiced, with stars...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found