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

Cannot read split of undefined, and trailing bytes #72

Closed
zacharynevin opened this issue Oct 10, 2015 · 1 comment
Closed

Cannot read split of undefined, and trailing bytes #72

zacharynevin opened this issue Oct 10, 2015 · 1 comment

Comments

@zacharynevin
Copy link

I have the following package versions:

{
    "redis": "2.0.1",
    "socket.io": "1.3.7",
    "socket.io-emitter": "0.2.0",
    "socket.io-redis": "0.1.4",
}

My redis version is 2.8.21.

When I instantiate socket.io-redis with return_buffers set to true for the clients, I get the following error:

channel.split("#") <!-- cannot read split of undefined

If I monkey patch the code in index.js for socket.io-redis so that the channel is a string, I get a trailing bytes error. Additionally, when I downgrade redis to 1.0.0, I get a trailing bytes error.

I can deal with downgrading redis to 1.0.0. However, no permutation of socket.io-redis, socket.io-emitter, and redis seems to ever solve the trailing bytes error. This is a very critical issue for me. Is there an initiative to fix it in the very near future?

@aPoCoMiLogin
Copy link

Yes there is already fix for it, but is not tagged, so there is no package for it on npmjs. #73 (comment) there is some workaround for it.

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