If you get an error that reads “WRONGTYPE Operation against a key holding the wrong kind of value” when using the ZSCORE
command in Redis, it’s because you’re passing a key with the wrong data type.
To fix this issue, make sure that you pass a sorted set to the ZSCORE
command.