0xDB: Edits section does not load (server error) #3173

Closed
opened 2018-09-26 08:23:32 +00:00 by rlx · 1 comment
Owner

Traceback (most recent call last):

> File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)

> File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)

> File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)

> File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

> File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api
    response = f(request, data)

> File "/srv/pandora/pandora/edit/views.py", line 421, in findEdits
    response['data']['items'] = []l.json(data['keys', request.user) for l in qs]

> File "/srv/pandora/pandora/edit/views.py", line 421, in <listcomp>
    response['data']['items'] = []l.json(data['keys', request.user) for l in qs]

> File "/srv/pandora/pandora/edit/models.py", line 377, in json
    clips_qs = self.get_clips(user)

> File "/srv/pandora/pandora/edit/models.py", line 250, in get_clips
    clips = clip.models.Clip.objects.find({'query': clips_query}, user)

> File "/srv/pandora/pandora/clip/managers.py", line 194, in find
    qs = qs.filter(condition)

> File "/srv/pandora/lib/python3.6/site-packages/django/db/models/query.py", line 784, in filter
    return self._filter_or_exclude(False, *args, **kwargs)

> File "/srv/pandora/lib/python3.6/site-packages/django/db/models/query.py", line 802, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))

> File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1250, in add_q
    clause, _ = self._add_q(q_object, self.used_aliases)

> File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1276, in _add_q
    allow_joins=allow_joins, split_subq=split_subq,

> File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1151, in build_filter
    arg, value = filter_expr

<ValueError>: not enough values to unpack (expected 2, got 1)

<WSGIRequest: POST '/api/'>

``` Traceback (most recent call last): > File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) > File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) > File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) > File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) > File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api response = f(request, data) > File "/srv/pandora/pandora/edit/views.py", line 421, in findEdits response['data']['items'] = []l.json(data['keys', request.user) for l in qs] > File "/srv/pandora/pandora/edit/views.py", line 421, in <listcomp> response['data']['items'] = []l.json(data['keys', request.user) for l in qs] > File "/srv/pandora/pandora/edit/models.py", line 377, in json clips_qs = self.get_clips(user) > File "/srv/pandora/pandora/edit/models.py", line 250, in get_clips clips = clip.models.Clip.objects.find({'query': clips_query}, user) > File "/srv/pandora/pandora/clip/managers.py", line 194, in find qs = qs.filter(condition) > File "/srv/pandora/lib/python3.6/site-packages/django/db/models/query.py", line 784, in filter return self._filter_or_exclude(False, *args, **kwargs) > File "/srv/pandora/lib/python3.6/site-packages/django/db/models/query.py", line 802, in _filter_or_exclude clone.query.add_q(Q(*args, **kwargs)) > File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1250, in add_q clause, _ = self._add_q(q_object, self.used_aliases) > File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1276, in _add_q allow_joins=allow_joins, split_subq=split_subq, > File "/srv/pandora/lib/python3.6/site-packages/django/db/models/sql/query.py", line 1151, in build_filter arg, value = filter_expr <ValueError>: not enough values to unpack (expected 2, got 1) <WSGIRequest: POST '/api/'> ```
j added the
backend
label 2018-09-26 08:23:32 +00:00
j added this to the 14.04 milestone 2018-09-26 08:23:32 +00:00
j self-assigned this 2018-09-26 08:23:32 +00:00
j added the
major
defect
labels 2018-09-26 08:23:32 +00:00
Owner

should work now

should work now
j added the
fixed
label 2018-09-26 08:53:51 +00:00
j closed this issue 2018-09-26 08:53:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#3173
No description provided.