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

Expecting status code for size/count #40

Open
aramis102 opened this issue Oct 27, 2010 · 1 comment
Open

Expecting status code for size/count #40

aramis102 opened this issue Oct 27, 2010 · 1 comment

Comments

@aramis102
Copy link

I am experiencing this exception while using the keys() method

-- JREDIS -- BUG: serviceRequest() -- ProviderException: Bug? Expecting status code for size/count
-- JREDIS -- INFO: serviceRequest() -- closing connection ...
org.jredis.ProviderException: Bug? Expecting status code for size/count
at org.jredis.ri.alphazero.protocol.SynchProtocol$SynchMultiLineResponseBase.readControlLine(SynchProtocol.java:410)
at org.jredis.ri.alphazero.protocol.SynchProtocol$SynchBulkResponse.read(SynchProtocol.java:488)
at org.jredis.ri.alphazero.connection.SynchConnection.serviceRequest(SynchConnection.java:138)
at org.jredis.ri.alphazero.JRedisClient.serviceRequest(JRedisClient.java:155)
at org.jredis.ri.alphazero.JRedisSupport.keys(JRedisSupport.java:1022)
at com.chikka.tron.JredisClient.main(JredisClient.java:83)

JRedis redis = new JRedisClient("localhost", 6379);
...
line 83 : redis.keys();

@motti
Copy link

motti commented Nov 10, 2010

You are almost certainly using the wrong jredis version for the redis server you are running. With version v2+ the KEYS command changed its reply type (from bulk to multi-bulk) but most other commands didn't so for the most part an incompatible version of jredis will work but for keys() it won't.

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

No branches or pull requests

2 participants