Opened 12 years ago

Last modified 12 years ago

#18770 closed Bug

MemcachedStringEncodingError — at Initial Version

Reported by: thecore Owned by: nobody
Component: Core (Cache system) Version: dev
Severity: Normal Keywords: cache
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

After last updates of Django - python-memcached not work.
I have UTF-8 locale and 'ru-ru' locale setting. Python memcached not updated last time. I not set keys in manually.

Traceback:
File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = middleware_method(request)

File "/usr/lib64/python2.7/site-packages/django/middleware/cache.py" in process_request

  1. cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)

File "/usr/lib64/python2.7/site-packages/django/utils/cache.py" in get_cache_key

  1. headerlist = cache.get(cache_key, None)

File "/usr/lib64/python2.7/site-packages/django/core/cache/backends/memcached.py" in get

  1. val = self._cache.get(key)

File "build/bdist.linux-x86_64/egg/memcache.py" in get

  1. return self._get('get', key)

File "build/bdist.linux-x86_64/egg/memcache.py" in _get

  1. self.check_key(key)

File "build/bdist.linux-x86_64/egg/memcache.py" in check_key

  1. "Keys must be str()'s, not unicode. Convert your unicode "

Exception Type: MemcachedStringEncodingError at /
Exception Value: Keys must be str()'s, not unicode. Convert your unicode strings using mystring.encode(charset)!

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top