Closed Bug 789243 Opened 12 years ago Closed 12 years ago

[traceback] TypeError: string indices must be integers, not str

Categories

(Marketplace Graveyard :: Consumer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME
2012-09-13

People

(Reporter: krupa.mozbugs, Assigned: ashort)

References

()

Details

(Keywords: regression)

steps to reproduce:
1. Load https://marketplace-dev.allizom.org/

traceback details:
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 89, in get_response
    response = middleware_method(request)

  File "commonware/log/middleware.py", line 26, in process_request
    if hasattr(request, 'user') and request.user.is_authenticated():

  File "django/utils/functional.py", line 184, in inner
    self._setup()

  File "django/utils/functional.py", line 248, in _setup
    self._wrapped = self._setupfunc()

  File "django/contrib/auth/middleware.py", line 16, in <lambda>
    request.user = SimpleLazyObject(lambda: get_user(request))

  File "django/contrib/auth/middleware.py", line 8, in get_user
    request._cached_user = auth.get_user(request)

  File "django/contrib/auth/__init__.py", line 98, in get_user
    user_id = request.session[SESSION_KEY]

  File "django/contrib/sessions/backends/base.py", line 39, in __getitem__
    return self._session[key]
TypeError: string indices must be integers, not str
-> ashort to investigate.  I'm not sure if JR's code affected this CCing him too.
Assignee: nobody → ashort
Target Milestone: 2012-09-06 → 2012-09-13
This appears to have been a transient failure due to changes on the caching backend.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.