flask-cache icon indicating copy to clipboard operation
flask-cache copied to clipboard

Redis - Protocol error (invalid bulk length) from client

Open clu8 opened this issue 8 years ago • 0 comments

I'm trying to use flask cache with redis to memoize function calls with large outputs. However, on the Redis side, I'm getting errors like:

Protocol error (invalid bulk length) from client: id=18158 addr=10.12.345.678:55056 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=13107 qbuf-free=19661 obl=42 oll=0 omem=0 events=r cmd=auth. Query buffer during protocol error: '*4..$5..SETEX..$30..flask_cache_view//v1/data/endpoint..$5..43200..$' (... more 12979 bytes ...) '\x7f\x00\x00\x00\x00\x00\x00\xf8\x7f\x00\x00\x00\x00\x00\x80@@\x'	

Could this be a problem with how flask cache is encoding the redis commands? Or am I looking in the wrong place? Thanks!

clu8 avatar Sep 14 '17 16:09 clu8