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

Bug? Expecting status code for size/count #26

Closed
pardon-the-pun opened this issue Aug 2, 2010 · 1 comment
Closed

Bug? Expecting status code for size/count #26

pardon-the-pun opened this issue Aug 2, 2010 · 1 comment

Comments

@pardon-the-pun
Copy link

When running this code:

@Test
public void keys() throws Exception {
    final JRedisService jredis = new JRedisService(DefaultConnectionSpec.newSpec(url, port, 10, credentials), 1);
    jredis.keys("foobar:*");
}

I get the following output:

-- 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.JRedisService.serviceRequest(JRedisService.java:179)
at org.jredis.ri.alphazero.JRedisSupport.keys(JRedisSupport.java:1022)

Using redis-cli to try the same, works just fine.

Redis server is 1.2.6

@pardon-the-pun
Copy link
Author

My mistake. This actually only happens against Redis server 1.3.15. Nevermind.

This issue was closed.
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

1 participant