DBAtlas · Database operations atlas

ERR unknown subcommand: ERR unknown subcommand or wrong number of arguments

Redis

What does it mean?

A container command (e.g. CONFIG, CLIENT, ACL, XINFO) received an invalid subcommand, or the subcommand was sent the wrong number of arguments. Redis did not recognize the subcommand.

Why does it happen?

A typo in the subcommand name, a subcommand not present in the Redis version in use, a wrong/missing argument count, or incorrect subcommand syntax.

How to fix it

Use the correct subcommand name and arguments; consult the command's HELP subcommand (e.g. CONFIG HELP, CLIENT HELP). Verify that your Redis version supports that subcommand. Fix the argument count and syntax according to the documentation.

Open in DBAtlas →

More from this engine