Wrong length in Protocol.encode
spacemeowx2 opened this issue · 1 comments
spacemeowx2 commented
If you are storing multibyte character like Chinese, the redis server will return error: UnhandledPromiseRejectionWarning: ERR Protocol error: unbalanced quotes in request
I suggest replace parameter.length
with Buffer.byteLength(parameter)
.
dasoncheng commented
thanks for your advice, I'm going to rewrite the protocol with Buffer