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