Closed nichochar closed 7 years ago
I think what's happening is that python2 is reporting that key as a str
, which means it's not getting through the clause
if isinstance(key, six.text_type):
try:
key = key.encode('ascii')
except UnicodeEncodeError:
raise MemcacheIllegalInputError("Non-ASCII key: '%r'" % (key,))
What is going on is that python2 str is not caught in {{six.text_type}} ([here is the documentation|https://pythonhosted.org/six/#six.text_type] so the check doesn't happen. (we weren't the only ones
Going to write a PR to fix this.
User tried to use key
'rpgv:https://www.pacificsales.com/brands/viking?ref=166_725&loc=soc_\xb1901520_%c3%abuy!'
and noMemcacheIllegalInputError
was raised, which causes obsure bug with stack trace below