One and Done crash on staging while picking a task

VERIFIED INVALID

Status

Mozilla QA
One and Done
VERIFIED INVALID
4 years ago
4 years ago

People

(Reporter: lizzard, Unassigned)

Tracking

Version 2
x86
Mac OS X

Details

(URL)

On https://oneanddone-dev.paas.allizom.org/en-US/ I logged in, picked a task, and the app crashed. 

TypeError at /tasks/available/

reduce() of empty sequence with no initial value

Request Method: 	GET
Request URL: 	https://oneanddone-dev.paas.allizom.org/en-US/tasks/available/
Django Version: 	1.4.10
Exception Type: 	TypeError
Exception Value: 	

reduce() of empty sequence with no initial value

Exception Location: 	/app/app/oneanddone/tasks/filters.py in __init__, line 47
Python Executable: 	/opt/ActivePython-2.7/bin/uwsgi
Python Version: 	2.7.2


Traceback:
File "/app/app/vendor/lib/python/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/opt/ActivePython-2.7/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py" in __call__
  216.                 self._nr_instance, args, kwargs)
File "/opt/ActivePython-2.7/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py" in wrapper
  475.                 return wrapped(*args, **kwargs)
File "/app/app/vendor/lib/python/django/views/generic/base.py" in view
  48.             return self.dispatch(request, *args, **kwargs)
File "/app/app/vendor/lib/python/django/views/generic/base.py" in dispatch
  69.         return handler(request, *args, **kwargs)
File "/app/app/vendor-local/lib/python/django_filters/views.py" in get
  60.         self.filterset = self.get_filterset(filterset_class)
File "/app/app/vendor-local/lib/python/django_filters/views.py" in get_filterset
  33.         return filterset_class(**kwargs)
File "/app/app/oneanddone/tasks/filters.py" in __init__
  47.             queryset=reduce(operator.or_, ancestor_querysets).distinct(),

Exception Type: TypeError at /tasks/available/
Exception Value: reduce() of empty sequence with no initial value
https://oneanddone-dev.paas.allizom.org is dev, not staging, and is not expected to be stable at this point. Also note that the debugging info you saw should no longer be available. That was fixed.

Until we have a stable development site I do not recommend testing nor reporting bugs against dev.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.