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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Redis has some limitations of various bulk length, the length of args of the API command MSET can't be bigger than 1024*1024, set a limiter on how big your list is to avoid this.

,
Expert tip

You're experiencing issue #124 in spring session: https://goo.gl/CgfzZ2. You can use the workaround described here: https://goo.gl/pnn7Cc or check the bug page mentioned for disscussion about it!

Solutions on the web

via GitHub by mhuelfen
, 1 year ago
ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context
via GitHub by serge-groshev
, 1 year ago
LOADING Redis is loading the dataset in memory
via Google Groups by Piyush Grover, 6 months ago
ERR source and destination objects are the same
via Stack Overflow by shyambaboogupta
, 1 year ago
OOM command not allowed when used memory > 'maxmemory'.
via Google Groups by Petar Tahchiev, 1 year ago
ERR wrong number of arguments for 'hmset' command
redis.clients.jedis.exceptions.JedisDataException: ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context
at redis.clients.jedis.Protocol.processError(Protocol.java:113)
at redis.clients.jedis.Protocol.process(Protocol.java:131)
at redis.clients.jedis.Protocol.read(Protocol.java:200)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:285)
at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:184)
at org.eclipse.leshan.server.demo.cluster.RedisClientRegistry$1.run(RedisClientRegistry.java:67)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

20 times, 1 month ago
Once, 2 months ago
5 times, 3 months ago
3676 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.