[traceback] AttributeError: 'module' object has no attribute 'COOKIE_NAME'

RESOLVED FIXED

Status

P1
normal
RESOLVED FIXED
4 years ago
2 years ago

People

(Reporter: willkg, Assigned: willkg)

Tracking

Details

(Whiteboard: u=user c=feedback p=1 s=input.2015q1)

Saw a couple of these on input-stage over the weekend. Writing up a bug now to look into it.


Internal Server Error: /da/feedback/fxos
Traceback (most recent call last):
  File "/data/www/input.allizom.org/input/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/data/www/input.allizom.org/venv/lib/python2.7/site-packages/newrelic-2.38.0.31/newrelic/hooks/framework_django.py", line 497, in wrapper
    return wrapped(*args, **kwargs)
  File "/data/www/input.allizom.org/input/vendor/src/django/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/data/www/input.allizom.org/input/vendor/src/django/django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/data/www/input.allizom.org/input/fjord/feedback/views.py", line 363, in _persist_feedbackdev
    resp.set_cookie(waffle.COOKIE_NAME % 'feedbackdev', qs_feedbackdev)
AttributeError: 'module' object has no attribute 'COOKIE_NAME'
Making this a P1 to look into now. It's only on stage. It's only with the feedbackdev flag (which we're not currently using), so it shouldn't be affecting anyone.

However, a while back, I sent some email to the l10n-dev list using the url in question, so it's possible translators are stumbling over this and it's preventing them from translating. I haven't heard from anyone, so I'm just guessing on that.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: u=user c=feedback p= s=input.2015q1
In a PR: https://github.com/mozilla/fjord/pull/491
Whiteboard: u=user c=feedback p= s=input.2015q1 → u=user c=feedback p=1 s=input.2015q1
Landed in master: https://github.com/mozilla/fjord/commit/f8cd3393e94cf5c5c0c9911bc7e964d0f2ae43f2

Pushed to prod just now.
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.