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

subscriber.js erroring out #20

Closed
Valid opened this issue May 1, 2010 · 3 comments
Closed

subscriber.js erroring out #20

Valid opened this issue May 1, 2010 · 3 comments

Comments

@Valid
Copy link

Valid commented May 1, 2010

Using latest from git, after starting publisher, then starting subscriber, I get this:
$ node subscriber.js
waiting for messages...
TypeError: Cannot read property 'length' of undefined
at Client.onReply_ (/web/node/node/redis/redis-node-client/lib/redis-client.js:395:51)
at /web/node/node/redis/redis-node-client/lib/redis-client.js:150:34
at ReplyParser.feed (/web/node/node/redis/redis-node-client/lib/redis-client.js:212:25)
at Stream. (/web/node/node/redis/redis-node-client/lib/redis-client.js:346:28)
at Stream.emit (events:25:26)
at IOWatcher.callback (net:365:18)
at node.js:176:9

@fictorial
Copy link
Owner

Ah, OK. The latest Redis sends pmessage instead of message when a message is published to a channel that the client subscribed to using a pattern. This wasn't the case with 1.3.8. It is on my list to add support for this however. In the interim, downgrade to Redis 1.3.8 or take a stab at patching Client.prototype.handlePublishedMessage_ if you are at all interested. I will otherwise patch this by say Tuesday.

@fictorial
Copy link
Owner

Sorry, I meant to include that this is thus a duplicate of Issue # 15.

@fictorial
Copy link
Owner

If you installed Redis from HEAD, retry with git checkout v1.3.8

This issue was closed.
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