Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR wrong number of arguments for 'sadd' command #1282

Closed
omeaart opened this issue Nov 19, 2019 · 2 comments
Closed

ERR wrong number of arguments for 'sadd' command #1282

omeaart opened this issue Nov 19, 2019 · 2 comments

Comments

@omeaart
Copy link
Contributor

omeaart commented Nov 19, 2019

Not entirely sure if this is expected behaviour, but it surprised me. When the SetAdd(Async) methods are used with an empty array of values, there is a broken call made to redis.

To reproduce:

var redisConnection = ConnectionMultiplexer.Connect("localhost");
redisConnection.GetDatabase().SetAdd("set1", new RedisValue[0]);

This also fails for SetAddAsync.

Version: 2.0.601
Tested with dotnetcore 2.2 and 3.0

@mgravell
Copy link
Collaborator

mgravell commented Nov 19, 2019 via email

@omeaart
Copy link
Contributor Author

omeaart commented Dec 3, 2019

This was resolved in #1283

@omeaart omeaart closed this as completed Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants