[traceback][dev] TypeError: 'str' object does not support item assignment

RESOLVED FIXED

Status

Participation Infrastructure
Phonebook
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: nemo, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
Internal Server Error: /pl/opensearch.xml
Traceback (most recent call last):
  File "/data/www/mozillians-dev.allizom.org/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 223, in get_response
    response = middleware_method(request, response)
  File "/data/www/mozillians-dev.allizom.org/venv/lib/python2.7/site-packages/newrelic-2.52.0.40/newrelic/hooks/framework_django.py", line 331, in wrapper
    return wrapped(*args, **kwargs)
  File "/data/www/mozillians-dev.allizom.org/venv/lib/python2.7/site-packages/session_csrf/__init__.py", line 108, in process_response
    secure=request.is_secure())
  File "/data/www/mozillians-dev.allizom.org/venv/lib/python2.7/site-packages/commonware/response/cookies/monkeypatch.py", line 45, in wrapped
    return f(self, *args, **kwargs)
  File "/data/www/mozillians-dev.allizom.org/venv/lib/python2.7/site-packages/django/http/response.py", line 235, in set_cookie
    self.cookies[key] = value
TypeError: 'str' object does not support item assignment
(Reporter)

Updated

2 years ago
Blocks: 1243710
(Reporter)

Comment 1

2 years ago
This was fixed as expected after flushing the memcached server.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED

Comment 2

2 years ago
Commits pushed to master at https://github.com/mozilla/mozillians

https://github.com/mozilla/mozillians/commit/367d589dda7bb18d25800a7f1b45538a3df025e0
[bug 1254981] Replace cache_page with cache_control.

* Instead of using CACHE backend to cache response in the
  view level, add `cache-control` headers.

https://github.com/mozilla/mozillians/commit/b6239c018922e9a6aed6319bacce48ae268f6a45
Merge pull request #1373 from johngian/opensearch-cache-control

[bug 1254981] Replace cache_page with cache_control.
You need to log in before you can comment on or make changes to this bug.