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

Specific string seems to break algorithm #151

Closed
rubixibuc opened this issue Apr 16, 2021 · 3 comments
Closed

Specific string seems to break algorithm #151

rubixibuc opened this issue Apr 16, 2021 · 3 comments

Comments

@rubixibuc
Copy link

Compressing "http://apple.com" and then decompressing it returns null instead of the original uncompressed string.

Confirmed behavior on the demo page.

@pieroxy
Copy link
Owner

pieroxy commented Apr 20, 2021

Did you figure out what was wrong?

@rubixibuc
Copy link
Author

Did you figure out what was wrong?

This string definitely broke my service, but because I was using .compress(). Something about the way it compressed the string prevented Redis from being able to save and retrieve it as a key value. Once I switched to the UTF16 version it worked.

@pieroxy
Copy link
Owner

pieroxy commented Apr 22, 2021

Thanks for the info. I need to make the doc clearer.

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