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

cache: issues with Redis keys in Python 3 #66

Open
slint opened this issue Sep 13, 2019 · 0 comments
Open

cache: issues with Redis keys in Python 3 #66

slint opened this issue Sep 13, 2019 · 0 comments

Comments

@slint
Copy link
Member

slint commented Sep 13, 2019

See error when trying to get/set a key: https://travis-ci.org/zenodo/zenodo/jobs/584553330#L2572

key = b'iiif:2ceb2c51-4e64-4c8b-b231-8e80d2eefb7f:376860ca-ea9d-458f-82e7-4a2ea65eccbf:Test.png/full/1200,/default/0.png'
    def get(self, key):
>       return self.load_object(self._client.get(self.key_prefix + key))
E       TypeError: Can't convert 'bytes' object to str implicitly
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/werkzeug/contrib/cache.py:616: TypeError
@slint slint changed the title cache: issues with reids keys in Python 3 cache: issues with Redis keys in Python 3 Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants