-
Notifications
You must be signed in to change notification settings - Fork 353
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
[QUESTION]How to solve the redis-cluster server replay MOVED redirect address by redis-plus-plus #600
Comments
Thanks for reporting this! When parsing the ASK and MOVED error message, redis-plus-plus separates the message with the first whitespace and colon. However, this does not work IPV6, since it has colon in the IP part. I'll fix the problem by finding the colon from reverse order to separate port from the IP part. B.T.W. Are you sure there're whitespace in the IP part? I don't think it's valid IPV6 format. Regards |
Thank you for your reply! |
I fixed the code to make it support IPv6 on dev branch. Could you please test it with the dev branch? I don't have IPv6 env to do the test. Thanks!
redis-plus-plus handles MOVED and ASK error, and follow the redirection to get the data. The application code doesn't need to handle these errors. Regards |
I did some tests in IPv4 env, merged the code into master branch, and made a new release. Regards |
Hello, I would like to know the specific version corresponding to this dev branch |
Hello, I would like to ask if you can provide the link to the code submission when you solved this problem. We want to see the specific changes made. |
You can check this PR |
When using Redis Plus plus as a client to connect to the Redis cluster and access Redis, the Redis server replies with an Invalid ASK error message: 1492 1172:: 1: fd2a: 6379, requiring the client to use a redirect address for access. How can Redis Plus Plus retrieve data through the MOVED redirect address of Redis cluster
The text was updated successfully, but these errors were encountered: