twemproxy(nutcracker), Error: Protocol error, got "{" as reply type byte

1.2k views Asked by At

I operated redis through twemproxy, it can connect to the redis instance, but can't execute any command. No matter what I input, it threw the error

 Error: Protocol error, got "{" as reply type byte 

and then, it exited

How to solve this?

1

There are 1 answers

0
simon_xia On BEST ANSWER

At last, I solved this by myself.

It is because twemproxy will listen on two ports when it starts, one of them is port 22222(by default, you can set it with '-s'), it is used for monitoring, if you connect to it, the error occurs

So, connect to another port