pytest-redis icon indicating copy to clipboard operation
pytest-redis copied to clipboard

Is redis server being configured to not support pub/sub?

Open katetsu opened this issue 2 years ago • 1 comments

What action do you want to perform

i have a client that publishes data to a redis end point. the client works with the redis-server running but i am getting an error if its run with pytest-redis.

What are the results

Failed to publish data with error: An error was signalled by the server: wrong number of arguments for 'publish' command

What are the expected results

no errors should come up.

katetsu avatar Jun 02 '22 12:06 katetsu

@katetsu please check exactly what's being passed (maybe the test fixture produces something else than a string?)

It should work as there is/was no special configuration option to turn on/off pub/sub support.

There are some results in google about the error ie: https://github.com/redis/node-redis/issues/108 as I saw the main issue was that the message was no string. See the error message anyway, it doesn't say you can't use publish, it says it's something wrong with the way you call it.

fizyk avatar Jun 02 '22 15:06 fizyk

I make extensive use of PUB/SUB , it works perfectly - I am not even sure if redis can be configured to not suppor pub/sub. I vote for closing this issue

mguijarr avatar Jun 04 '24 13:06 mguijarr