holys / redis-cli

A pure go implementation of redis-cli.
https://github.com/holys/redis-cli
MIT License
213 stars 22 forks source link

How to find out the contents of (long resp line) ? #10

Open paritosh149 opened 5 years ago

paritosh149 commented 5 years ago

I tried to connect to a rediis server instance using holys/redis-cli exe on windows 10 Command Prompt. It did gave me the redis-cli prompt but every command results in (long resp line). I need to find out the contents of "long resp line".

How can I find out the contents?

huapox commented 2 years ago

+1

https://github.com/holys/redis-cli/blob/master/vendor/github.com/holys/goredis/resp.go#L157

huapox commented 2 years ago

https://github.com/holys/redis-cli/blob/master/vendor/github.com/holys/goredis/resp.go#L157

set key val, when the val is too long, then error "long resp line" occured


Only error with this:

    cat <<EOF22 | redli -h 172.xx.x.x -p 6379 -a xxx -n 0
set key01 "$val"
exit
EOF22

resolved just run with: redis-cli/redli -h 172.xx.x.x -p 6379 -a xxx -n 0 set aa3 $val. the same problem with: https://github.com/IBM-Cloud/redli/releases/tag/v0.5.2