Jedis exception: ERR key too long error

31 views
Skip to first unread message

Mike Collins

unread,
Sep 11, 2020, 2:20:43 PM9/11/20
to Jedis
Any idea why Jedis would be throwing this error....

Are there limits on keys or values - can these be set somewhere?

Is this more on the Server side?  We are using Redis Labs Enterprise servers.

redis.clients.jedis.exceptions.JedisDataException: ERR key too long

                at redis.clients.jedis.Protocol.processError(Protocol.java:127)

                at redis.clients.jedis.Protocol.process(Protocol.java:161)

                at redis.clients.jedis.Protocol.read(Protocol.java:215)

                at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)

                at redis.clients.jedis.Connection.getOne(Connection.java:322)

                at redis.clients.jedis.Jedis.getEvalResult(Jedis.java:2731)

                at redis.clients.jedis.Jedis.evalsha(Jedis.java:2757)

                at coldfusion.tagext.io.cache.redis.GenericRedisCache.put(GenericRedisCache.java:1328)


private static Object process(final RedisInputStream is) {
final byte b = is.readByte();
switch (b) {
case PLUS_BYTE:
return processStatusCodeReply(is);
case DOLLAR_BYTE:
return processBulkReply(is);
case ASTERISK_BYTE:
return processMultiBulkReply(is);
case COLON_BYTE:
return processInteger(is);
case MINUS_BYTE:
processError(is);
return null;
default:
throw new JedisConnectionException("Unknown reply: " + (char) b);
}
Reply all
Reply to author
Forward
0 new messages