You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to set a cache too big the error message is a byte string for pymemcache.exceptions.MemcacheServerError(b'object too large for cache'). I believe this message is coming from the backend but shouldn't we decode it to a regular string as we raise the exception?
The text was updated successfully, but these errors were encountered:
Looking over this codebase this has been the default behavior since 108f15c, and changing it risks breaking existing usage. While I couldn't find any cases where there could be unicode in the error message https://github.com/memcached/memcached/search?p=1&q=SERVER_ERROR&type=code I am inclined to say we should leave the exception as bytes so we don't risk breaking existing usage of MemcacheServerError.
When I attempt to set a cache too big the error message is a byte string for
pymemcache.exceptions.MemcacheServerError(b'object too large for cache')
. I believe this message is coming from the backend but shouldn't we decode it to a regular string as we raise the exception?The text was updated successfully, but these errors were encountered: