Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis-proxy invalid header type #904

Open
pyfdtic opened this issue Feb 9, 2022 · 1 comment
Open

redis-proxy invalid header type #904

pyfdtic opened this issue Feb 9, 2022 · 1 comment

Comments

@pyfdtic
Copy link

pyfdtic commented Feb 9, 2022

按照这里的文档配置 redis-proxy, https://pegasus.apache.org/api/redis , redis-proxy 可以正常运行, 但是使用 redis-cli 链接时, 无法读取/写入数据, 并报错:

E2022-02-08 23:58:53.494 (1644364733494737681 15)  proxy.io-thrd.00015: network.cpp:240:prepare_parser(): invalid header type, remote_client = 127.0.0.1:40514, header_type = '*5\0D\0A'
E2022-02-08 23:58:53.494 (1644364733494766106 15)  proxy.io-thrd.00015: asio_rpc_session.cpp:121:operator()(): asio read from 127.0.0.1:40514 failed


E2022-02-08 23:57:25.30 (1644364645030020869 15)  proxy.io-thrd.00015: network.cpp:240:prepare_parser(): invalid header type, remote_client = 127.0.0.1:40510, header_type = '*3\0D\0A'
E2022-02-08 23:57:25.30 (1644364645030040541 15)  proxy.io-thrd.00015: asio_rpc_session.cpp:121:operator()(): asio read from 127.0.0.1:40510 failed

header_type = '*3\0D\0A' 是 redis protocol 解析 redis command 的内容, 使用 redis-cli 2.8/5.0.4/6.2.6 测试均有问题
pegasus 版本 2.3.0

请问, 有可能是什么原因呢?

@acelyc111
Copy link
Member

redis-cli发送什么指令的时候报的错?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants