redis.clients.jedis.exceptions.JedisDataException: ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context

Stack Overflow | manish | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context

    Stack Overflow | 8 months ago | manish
    redis.clients.jedis.exceptions.JedisDataException: ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context

    Root Cause Analysis

    1. redis.clients.jedis.exceptions.JedisDataException

      ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context

      at redis.clients.jedis.Protocol.processError()
    2. Jedis
      Jedis.georadius
      1. redis.clients.jedis.Protocol.processError(Protocol.java:117)
      2. redis.clients.jedis.Protocol.process(Protocol.java:151)
      3. redis.clients.jedis.Protocol.read(Protocol.java:205)
      4. redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297)
      5. redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:242)
      6. redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:248)
      7. redis.clients.jedis.Jedis.georadius(Jedis.java:3452)
      7 frames
    3. com.app.redis
      RedisNewPostListener.onMessage
      1. com.app.redis.RedisNewPostListener.onMessage(RedisNewPostListener.java:39)
      1 frame
    4. Jedis
      Jedis.subscribe
      1. redis.clients.jedis.JedisPubSub.process(JedisPubSub.java:129)
      2. redis.clients.jedis.JedisPubSub.proceed(JedisPubSub.java:102)
      3. redis.clients.jedis.Jedis.subscribe(Jedis.java:2628)
      3 frames