-
Notifications
You must be signed in to change notification settings - Fork 86
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
Decoding data is not nesessary on some Redis configurations #294
Comments
Its clear - python3.5 needs str, not bytes. |
encoder and decoder are object <-> str converters by design. |
I hit this bug when plugging the |
@NotSqrt it's your configuration problem, not the library bug. |
So regroup decoding and unserializing ? |
@asvetlov redis eats bytes. Why we cant use bytes? There is opton designed customizable, but that we cant customize it. Simple Maybe param to init to provide decoder? Maybe split it into method? |
Here encoder designed as
All |
I also meet this, please fix it quickly thanks so much : ) |
Error like this:
after I change it to
it run OK |
This issue is about multiple problems:
Ignoring the AttributeError will "fix" my problem, but not for @alex-eri This is why I propose the possibility of customizing decoding + deserializing with a function parameter. |
I removed this line in local fork.) |
Didn't read the tread. |
I think decode must be droped from here because it conflicts backend and codecs. Its trivial to fix backward compatability using wrapper for json codek in default value. |
If someone can create a test that reproduces this Redis issue in a PR, then I'm sure we can figure out a fix. |
What reason for this line here?
aiohttp-session/aiohttp_session/redis_storage.py
Line 53 in 606caca
I want to store some bytes in session. Changed encoder
setup_session(app, RedisStorage(redis_pool, encoder=pickle.dumps, decoder=pickle.loads))
. And I have error on getting session:It also breakes
msgpack
The text was updated successfully, but these errors were encountered: