10000
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DEBUG SLEEP with a time that is not a number says "wrong number of arguments" #657
> DEBUG SLEEP abc
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP 0 1
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP -1
(error) ERR value is out of range
Expected: a value that is not a number gets a value error (ERR value is not a valid float, or as Redis does), and a wrong argument count Redis's ERR unknown subcommand or wrong number of arguments for 'sleep'. Try DEBUG HELP., which 1.2.1 already uses for the other DEBUG subcommands (changelog: "Any other subcommand ... or one with the wrong number of arguments, is refused with Redis's ...").
Actual:abc is reported as a wrong number of arguments, and the arity error has its own wording.
Impact: cosmetic; misleading error text for test suites.
Good first issue: small and self-contained, and Redis 8.10 is the spec.
Hi @murtazayusuf, I'd like to work on this issue. I'm interested in fixing the incorrect error handling for invalid DEBUG SLEEP arguments. Could you please assign this issue to me?
Activity
KrishPatel1905 commentedon Nov 13, 2026
Hi @murtazayusuf, I'd like to work on this issue. I'm interested in fixing the incorrect error handling for invalid DEBUG SLEEP arguments. Could you please assign this issue to me?
Fix DEBUG SLEEP error messages for non-numeric and wrong-arity args
Fix DEBUG SLEEP error messages for non-numeric and wrong-arity args