If you’re getting an error that reads “ERR value is out of range, must be positive” in Redis, it’s probably because you’re passing a negative count value to the SPOP
command.
To fix this issue, make sure the second argument (if supplied) is a positive value.
Continue reading