You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside of server.js,after creating the store and attaching all the express middleware, this snippet doesn't work for me:
var model = store.createModel();
model.subscribe('foo', function() {
});
This crashes the server with a redis exception:
Error: Connection in subscriber mode, only subscriber commands may be used
at RedisClient.send_command (/fakepath/node_modules/redis-url/node_modules/redis/index.js:834:15)
at RedisClient.send_offline_queue (/fakepath/node_modules/redis-url/node_modules/redis/index.js:443:34)
at RedisClient.on_ready (/fakepath/node_modules/redis-url/node_modules/redis/index.js:371:14)
at RedisClient.on_info_cmd (/fakepath/node_modules/redis-url/node_modules/redis/index.js:406:14)
at /fakepath/node_modules/redis-url/node_modules/redis/index.js:430:14
at try_callback (/fakepath/node_modules/redis-url/node_modules/redis/index.js:592:9)
at RedisClient.return_reply (/fakepath/node_modules/redis-url/node_modules/redis/index.js:685:13)
at ReplyParser.<anonymous> (/fakepath/node_modules/redis-url/node_modules/redis/index.js:321:14)
at ReplyParser.emit (events.js:107:17)
at ReplyParser.send_reply (/fakepath/node_modules/redis-url/node_modules/redis/lib/parser/javascript.js:300:10)
at ReplyParser.execute (/fakepath/node_modules/redis-url/node_modules/redis/lib/parser/javascript.js:203:22)
at RedisClient.on_data (/fakepath/node_modules/redis-url/node_modules/redis/index.js:547:27)
at Socket.<anonymous> (/fakepath/node_modules/redis-url/node_modules/redis/index.js:102:14)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:529:20)
this is more of a debugging question rather than an issue with the library. As such could you please use Stack Overflow and tag it with racer and derbyjs?
When you do so could you please include a minimal example to reproduce. You are correct that this should work so its likely something else is going on.
I'm just recently starting to encourage people to use SO, and we haven't officially announced it. you can also ping us in the gitter chatroom or on the mailing list with the SO link: http://derbyjs.com/resources
Using DerbyJS.
Inside of
server.js
,after creating the store and attaching all the express middleware, this snippet doesn't work for me:This crashes the server with a redis exception:
Is this normal? The documentation says:
The text was updated successfully, but these errors were encountered: