[traceback] [prod] Exception: TypeError: unsupported operand type(s) for -: 'str' and 'int'

RESOLVED WORKSFORME

Status

Input Graveyard
Backend
--
major
RESOLVED WORKSFORME
6 years ago
9 months ago

People

(Reporter: mbrandt, Unassigned)

Tracking

Details

(Whiteboard: [prod], URL)

(Reporter)

Description

6 years ago
Traceback (most recent call last):

 File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 102, in wrapped
   return f(request, *args, **kwargs)

 File "/data/www/django/input.mozilla.com/reporter/vendor/src/django/django/utils/decorators.py", line 93, in _wrapped_view
   response = view_func(request, *args, **kwargs)

 File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 43, in cached_view
   return f(request, *args, **kwargs)

 File "/data/www/django/input.mozilla.com/reporter/apps/search/views.py", line 215, in index
   request, meta=meta)

 File "/data/www/django/input.mozilla.com/reporter/apps/search/views.py", line 38, in _get_results
   search_opts = _get_results_opts(request, data, product, meta)

 File "/data/www/django/input.mozilla.com/reporter/apps/search/views.py", line 62, in _get_results_opts
   search_opts['offset'] = ((data.get('page', 1) - 1) *

TypeError: unsupported operand type(s) for -: 'str' and 'int'

Comment 1

4 years ago
Reopen if this still happens with new input rewrite.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
(Assignee)

Updated

9 months ago
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.