-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error calling redis command with arguments in lua eval #220
Comments
There are probably going to be a whole bunch of these, which are because the Lua support just connects directly to the Python API, rather than to an emulation of the redis wire protocol. It would probably need #65 to fix that. If you wanted to fix just this particular issue, I think the fix would be to have ZRANGE accept strings where it takes ints. Pull requests welcome. You might also want to check out birdisle, which won't have these sort of problems, but isn't quite production-ready. |
Thanks, that looks promising! I ran into several issues and was able to hack the library to get it mostly working in my narrow use case. But it's nowhere clean enough to submit a PR yet. |
Incidentally I've just made the initial release of birdisle, so you should be able to pip install it and try it out. |
This should be fixed in 1.0rc1, although I haven't specifically tested it. Feel free to contribute a PR to add the test, and re-open if it still doesn't work. |
Test case demonstrating the issue:
And the error (using HEAD):
Python version:
Seems related to the conversion here:
fakeredis/fakeredis.py
Line 1035 in a4e85b8
The text was updated successfully, but these errors were encountered: