-
Notifications
You must be signed in to change notification settings - Fork 37
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
Redis Exception on Data types #157
Comments
It sounds like a bug. every input/output is intended to be converted to bytes. do you have small reproducible code example about this bug? |
I am using |
I tried the same code but didn't find any problem.
python version is slightly different
Any idea what can be different from yours and mine? |
So I checked again and the following exception is raised first, Traceback (most recent call last): |
I keep getting,
redis.exceptions.DataError: Invalid input of type: 'list'. Convert to a byte, string or number first
on a function
@ring.redis(redis_client,key_prefix="api")
def find(self,source,destination):
where
source
is a python list of integers.@ring.lru
works fine though. Could it be thatring.redis
is not converting function arguments or return values to data types acceptable to redis?The exception is raised in
redis/connection.py", line 118, in encode
The text was updated successfully, but these errors were encountered: